Rev 338 | Rev 351 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 338 | Rev 345 | ||
---|---|---|---|
Line 410... | Line 410... | ||
410 | else Compass_SetCalState(0); |
410 | else Compass_SetCalState(0); |
411 | } |
411 | } |
412 | if(Keys & KEY3)Compass_SetCalState(0); // cancel |
412 | if(Keys & KEY3)Compass_SetCalState(0); // cancel |
413 | break; |
413 | break; |
414 | case 17: |
414 | case 17: |
- | 415 | if(GeoMagDec < 0) sign = '-'; |
|
- | 416 | else sign = '+'; |
|
415 | LCD_printfxy(0,0,"Magnetic Field"); |
417 | LCD_printfxy(0,0,"Magnetic Field"); |
416 | LCD_printfxy(0,1,"Field:%3i (Percent)",EarthMagneticField/5); |
418 | LCD_printfxy(0,1,"Field:%3i (Percent)",EarthMagneticField/5); |
417 | LCD_printfxy(0,2,"Declination:%c%i.%1i ", sign, abs(GeoMagDec)/10,abs(GeoMagDec)%10); |
419 | LCD_printfxy(0,2,"Declination:%c%i.%1i ", sign, abs(GeoMagDec)/10,abs(GeoMagDec)%10); |
418 | LCD_printfxy(0,3,"Inclination:%2i (%2i)", EarthMagneticInclination, EarthMagneticInclinationTheoretic); |
420 | LCD_printfxy(0,3,"Inclination:%2i (%2i)", EarthMagneticInclination, EarthMagneticInclinationTheoretic); |
419 | break; |
421 | break; |