Open gotchafr opened 11 years ago
Hi there,
Just wanted to signal that the updatePosition function should be fixed to xmit the correct lat and long to the hott transmitter... The calculation of these values are done in the GPS.ino like this:
return deg * 10000000UL + (min * 1000000UL + frac_min*100UL) / 6;
So the updatePosition function should use 10^7 as divider and not 10^5 as in the original (master) code. Here are the modified lines of HottV4.ino
uint8_t deg = value / 10000000; //Two zeros added uint32_t sec = (value - (deg * 10000000)) * 6; //Two zeros added uint8_t min = sec / 1000000; //Two zeros added sec = sec % 1000000; //Two zeros added
Best regards.
Hi there,
Just wanted to signal that the updatePosition function should be fixed to xmit the correct lat and long to the hott transmitter... The calculation of these values are done in the GPS.ino like this:
So the updatePosition function should use 10^7 as divider and not 10^5 as in the original (master) code. Here are the modified lines of HottV4.ino
Best regards.