189,8 → 189,8 |
* precise index |
*/ |
uint8_t heading_fine_conv(uint16_t heading) { |
if (heading > 337) return 0; |
return (heading * 10) / 225; |
heading = ((heading * 10) + 113) % 3600; |
return (heading / 225); |
} |
|
/** |
693,7 → 693,8 |
write_ndigit_number_s_10th(5, 11, -1, 100, 0); |
write_ndigit_number_s_10th(5, 12, -11, 100, 0);*/ |
|
//write_ndigit_number_u(2,2, heading_fine_conv(45), 100, 0); |
//write_ndigit_number_u(2,2, heading_fine_conv(34), 100, 0); |
//write_char_xy(1, 2, 0xa0 + heading_fine_conv(34)); |
|
while (1) { |
// write icons at init or after menu/mode-switch |