Skip to content

Commit

Permalink
Merge pull request #9388 from rmaia3d/bfcompat_wind_speed
Browse files Browse the repository at this point in the history
BFCOMPAT - improve wind and airspeed fields and labels
  • Loading branch information
DzikuVx authored Oct 24, 2023
2 parents fab4d2b + 76ed33e commit 0f81192
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions src/main/io/displayport_msp_bf_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,31 @@ uint8_t getBfCharacter(uint8_t ch, uint8_t page)
case SYM_AH_DECORATION_DOWN:
return BF_SYM_AH_DECORATION_DOWN;
case SYM_DIRECTION:
return BF_SYM_DIRECTION;
*/
case SYM_DIRECTION:
return BF_SYM_ARROW_NORTH;

case SYM_DIRECTION + 1: // NE pointing arrow
return BF_SYM_ARROW_7;

case SYM_DIRECTION + 2: // E pointing arrow
return BF_SYM_ARROW_EAST;

case SYM_DIRECTION + 3: // SE pointing arrow
return BF_SYM_ARROW_3;

case SYM_DIRECTION + 4: // S pointing arrow
return BF_SYM_ARROW_SOUTH;

case SYM_DIRECTION + 5: // SW pointing arrow
return BF_SYM_ARROW_15;

case SYM_DIRECTION + 6: // W pointing arrow
return BF_SYM_ARROW_WEST;

case SYM_DIRECTION + 7: // NW pointing arrow
return BF_SYM_ARROW_11;

case SYM_VOLT:
return BF_SYM_VOLT;

Expand Down Expand Up @@ -222,20 +243,19 @@ uint8_t getBfCharacter(uint8_t ch, uint8_t page)
/*
case SYM_NM:
return BF_SYM_NM;
*/
case SYM_WIND_HORIZONTAL:
return BF_SYM_WIND_HORIZONTAL;
return 'W'; // W for wind

/*
case SYM_WIND_VERTICAL:
return BF_SYM_WIND_VERTICAL;
case SYM_3D_KT:
return BF_SYM_3D_KT;
case SYM_AIR:
return BF_SYM_AIR;
*/
case SYM_AIR:
return 'A'; // A for airspeed

case SYM_3D_KMH:
return BF_SYM_KPH;
Expand Down

0 comments on commit 0f81192

Please sign in to comment.