Skip to content

Commit

Permalink
Merge pull request #495 from ShikOfTheRa/Dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ShikOfTheRa authored Mar 13, 2018
2 parents 3ca3365 + 5257991 commit 6e57499
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 6 deletions.
1 change: 1 addition & 0 deletions MW_OSD/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@
#define ICON_TMP // Temperature
#define ICON_DTH // Distance to home
#define ICON_ALT // Altitude prime
#define ICON_AGL // Altitude rangefinder
#define ICON_GPS_ALT // GPS altitude
#define ICON_MAIN_BATT // Main battery icon
#define ICON_VID_BAT // Video battery icon
Expand Down
4 changes: 2 additions & 2 deletions MW_OSD/MW_OSD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ uint16_t UntouchedStack(void)

//------------------------------------------------------------------------
#define MWVERS "MW-OSD - R1.8.0.0"
#define MWVERS "MW-OSD - R1.8 BUILD 4"
#define MWOSDVERSION 1880 // 1660=1.6.6.0 for GUI
#define MWVERS "MW-OSD - R1.8"
#define MWOSDVERSION 1800 // 1660=1.6.6.0 for GUI
#define EEPROMVER 15 // for eeprom layout verification

#include <avr/pgmspace.h>
Expand Down
12 changes: 11 additions & 1 deletion MW_OSD/Screen.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1034,11 +1034,21 @@ void displayMAVAltitude(void){
formatDistance(xx,0,0,0x2B);
MAX7456_WriteString(screenBuffer,getPosition(MwGPSAltPosition));
#else
xx=MAV_altitude/10;
int8_t dec_len=0;
while (xx!=0){
xx/=10;
dec_len++;
}
if (dec_len<2)
dec_len=2;
if (MAV_altitude<0)
dec_len++;
if(Settings[S_UNITSYSTEM])
xx = MAV_altitude * 0.32808; // in ft*10
else
xx = MAV_altitude/10 ; // in cm*10
displayItem(MwGPSAltPosition,xx, 0x2B, 0, 4, 3 );
displayItem(MwGPSAltPosition,xx, SYM_AGL, 0, dec_len+1, dec_len );
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion MW_OSD/fontB.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion MW_OSD/fontD.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion MW_OSD/fontL.h

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions MW_OSD/symbols.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@
#define SYM_ALT 0
#endif

#ifdef ICON_AGL
#define SYM_AGL 0XC7
#else
#define SYM_AGL 0
#endif

#ifdef ICON_GPS_ALT
#define SYM_GPS_ALT 0XBE
#else
Expand Down
Binary file modified OTHER/FONT _EDITOR/Font code generator.xlsm
Binary file not shown.

0 comments on commit 6e57499

Please sign in to comment.