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
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