kopia lustrzana https://github.com/pjalocha/esp32-ogn-tracker
Display MAVLINK instead of GPS when drone telemetry is the position source
rodzic
ab5bf7ae58
commit
0bedef6a90
|
@ -572,6 +572,9 @@ void OLED_DrawSystem(u8g2_t *OLED, GPS_Position *GPS)
|
||||||
{
|
{
|
||||||
u8g2_SetFont(OLED, u8g2_font_7x13_tf); // 5 lines, 12 pixels/line
|
u8g2_SetFont(OLED, u8g2_font_7x13_tf); // 5 lines, 12 pixels/line
|
||||||
uint8_t Len=0;
|
uint8_t Len=0;
|
||||||
|
#ifdef WITH_MAVLINK
|
||||||
|
Len+=Format_String(Line+Len, "MAVLINK ");
|
||||||
|
#else
|
||||||
Len+=Format_String(Line+Len, "GPS ");
|
Len+=Format_String(Line+Len, "GPS ");
|
||||||
#ifdef WITH_GPS_UBX
|
#ifdef WITH_GPS_UBX
|
||||||
Len+=Format_String(Line+Len, "UBX ");
|
Len+=Format_String(Line+Len, "UBX ");
|
||||||
|
@ -582,6 +585,7 @@ void OLED_DrawSystem(u8g2_t *OLED, GPS_Position *GPS)
|
||||||
#ifdef WITH_GPS_SRF
|
#ifdef WITH_GPS_SRF
|
||||||
Len+=Format_String(Line+Len, "SRF ");
|
Len+=Format_String(Line+Len, "SRF ");
|
||||||
#endif
|
#endif
|
||||||
|
#endif // WITH_MAVLINK
|
||||||
Len+=Format_UnsDec(Line+Len, GPS_getBaudRate(), 1);
|
Len+=Format_UnsDec(Line+Len, GPS_getBaudRate(), 1);
|
||||||
Len+=Format_String(Line+Len, "bps");
|
Len+=Format_String(Line+Len, "bps");
|
||||||
Line[Len]=0;
|
Line[Len]=0;
|
||||||
|
|
Ładowanie…
Reference in New Issue