Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 386 → Rev 385

/C-OSD/trunk/main.c
189,8 → 189,8
* precise index
*/
uint8_t heading_fine_conv(uint16_t heading) {
heading = ((heading * 10) + 113) % 3600;
return (heading / 225);
if (heading > 337) return 0;
return (heading * 10) / 225;
}
 
/**
693,8 → 693,7
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(34), 100, 0);
//write_char_xy(1, 2, 0xa0 + heading_fine_conv(34));
//write_ndigit_number_u(2,2, heading_fine_conv(45), 100, 0);
 
while (1) {
// write icons at init or after menu/mode-switch