Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 385 → Rev 386

/C-OSD/trunk/CHANGE.LOG
18,6 → 18,9
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
****************************************************************************/
 
20090419-1900
*fixed bug in heading-fine conv for bearing to home
 
20090419-1245
*compass characters bigger
*battery position
/C-OSD/trunk/main.c
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