/FollowMe/temp/FollowMe/kml.c |
---|
320,7 → 320,7 |
fputs_(string, doc->file); |
if(GPSData.Position.Latitude < 0) sign = '-'; |
else sign = '+'; |
i1 = abs/(int16_t)(GPSData.Position.Latitude/10000000L)); |
i1 = abs((int16_t)(GPSData.Position.Latitude/10000000L)); |
i2 = abs((int16_t)((GPSData.Position.Latitude%10000000L)/10000L)); |
i3 = abs((int16_t)(((GPSData.Position.Latitude%10000000L)%10000L)/10L)); |
sprintf(string,"%c%d.%.3d%.3d,",sign, i1, i2, i3); |
/FollowMe/temp/FollowMe/menu.c |
---|
125,7 → 125,7 |
LCD_printfxy(0,2,"Lat: %c%d.%.3d%.3d deg",sign, i1, i2, i3); |
if(GPSData.Position.Altitude < 0) sign = '-'; |
else sign = '+'; |
i1 = abs(int16_t)(GPSData.Position.Altitude/1000L); |
i1 = abs((int16_t)(GPSData.Position.Altitude/1000L)); |
i2 = abs((int16_t)(GPSData.Position.Altitude%1000L)); |
LCD_printfxy(0,3,"Alt: %c%04d.%.03d m",sign, i1, i2); |
} |