mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Add OSD display of 2nd block of debug values (#13800)
Add OSD display of 2nd blocks of debug values
This commit is contained in:
parent
2525be9a33
commit
665a42e295
4 changed files with 10 additions and 0 deletions
|
@ -936,6 +936,11 @@ static void osdElementDebug(osdElementParms_t *element)
|
|||
tfp_sprintf(element->buff, "DBG %5d %5d %5d %5d", debug[0], debug[1], debug[2], debug[3]);
|
||||
}
|
||||
|
||||
static void osdElementDebug2(osdElementParms_t *element)
|
||||
{
|
||||
tfp_sprintf(element->buff, "D2 %5d %5d %5d %5d", debug[4], debug[5], debug[6], debug[7]);
|
||||
}
|
||||
|
||||
static void osdElementDisarmed(osdElementParms_t *element)
|
||||
{
|
||||
if (!ARMING_FLAG(ARMED)) {
|
||||
|
@ -1806,6 +1811,7 @@ static const uint8_t osdElementDisplayOrder[] = {
|
|||
OSD_WARNINGS,
|
||||
OSD_AVG_CELL_VOLTAGE,
|
||||
OSD_DEBUG,
|
||||
OSD_DEBUG2,
|
||||
OSD_PITCH_ANGLE,
|
||||
OSD_ROLL_ANGLE,
|
||||
OSD_MAIN_BATT_USAGE,
|
||||
|
@ -1919,6 +1925,7 @@ const osdElementDrawFn osdElementDrawFunction[OSD_ITEM_COUNT] = {
|
|||
[OSD_GPS_LAT] = osdElementGpsCoordinate,
|
||||
#endif
|
||||
[OSD_DEBUG] = osdElementDebug,
|
||||
[OSD_DEBUG2] = osdElementDebug2,
|
||||
#ifdef USE_ACC
|
||||
[OSD_PITCH_ANGLE] = osdElementAngleRollPitch,
|
||||
[OSD_ROLL_ANGLE] = osdElementAngleRollPitch,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue