Skip to content

GPS SBS-02G #42

Description

@magnum3131

Hi,

I'm working on the code to adding the GPS sensor SBS-02G. For the moment i manage to send the altitude, variometer and the pressure. But i'm stuck by the latitude and the longitude.

The latitude is coded on 26 bit wich can have the maximum value 67 108 864, insuffisant for 90°. According to my test the value of the bit is not always a power of 2.
Here the detail of the 26 bit :
55554432, 27577216, 13588608, 6594304, 3297152, 1448576, 524288, 262144, 131072, 65536, 32768, 16384, 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1

Same thing with the longitude but this time with 27 bit :
111508864, 55554432, 27577216, 13588608, 6594304, 3297152, 1448576, 524288, 262144, 131072, 65536, 32768, 16384, 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2,1

I tried to make a fonction to convert value with this bit but the radio display different value. Depending on the case i have the following difference between the send value and the display.
2400000, 2000000, 1600000, 1200000, 800000, 400000, 0

The difference depend of the coordonate

Have you ever seen this king of compression to transmit high value with less bit ?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoneDone but not commited

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions