1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Added CLI 'diff' command.

This commit is contained in:
mikeller 2016-08-07 02:07:16 +12:00 committed by Michael Keller
parent 6a02cde5be
commit 31c3790a5d
10 changed files with 696 additions and 381 deletions

View file

@ -833,24 +833,22 @@ void osdInit(void)
max7456_draw_screen();
}
void resetOsdConfig(void)
void resetOsdConfig(osd_profile *osdProfile)
{
featureSet(FEATURE_OSD);
masterConfig.osdProfile.video_system = AUTO;
masterConfig.osdProfile.item_pos[OSD_MAIN_BATT_VOLTAGE] = -29;
masterConfig.osdProfile.item_pos[OSD_RSSI_VALUE] = -59;
masterConfig.osdProfile.item_pos[OSD_TIMER] = -39;
masterConfig.osdProfile.item_pos[OSD_THROTTLE_POS] = -9;
masterConfig.osdProfile.item_pos[OSD_CPU_LOAD] = 26;
masterConfig.osdProfile.item_pos[OSD_VTX_CHANNEL] = 1;
masterConfig.osdProfile.item_pos[OSD_VOLTAGE_WARNING] = -80;
masterConfig.osdProfile.item_pos[OSD_ARMED] = -107;
masterConfig.osdProfile.item_pos[OSD_DISARMED] = -109;
masterConfig.osdProfile.item_pos[OSD_ARTIFICIAL_HORIZON] = -1;
masterConfig.osdProfile.item_pos[OSD_HORIZON_SIDEBARS] = -1;
masterConfig.osdProfile.item_pos[OSD_CURRENT_DRAW] = -23;
masterConfig.osdProfile.item_pos[OSD_MAH_DRAWN] = -18;
masterConfig.osdProfile.item_pos[OSD_CRAFT_NAME] = 1;
osdProfile->video_system = AUTO;
osdProfile->item_pos[OSD_MAIN_BATT_VOLTAGE] = -29;
osdProfile->item_pos[OSD_RSSI_VALUE] = -59;
osdProfile->item_pos[OSD_TIMER] = -39;
osdProfile->item_pos[OSD_THROTTLE_POS] = -9;
osdProfile->item_pos[OSD_CPU_LOAD] = 26;
osdProfile->item_pos[OSD_VTX_CHANNEL] = 1;
osdProfile->item_pos[OSD_VOLTAGE_WARNING] = -80;
osdProfile->item_pos[OSD_ARMED] = -107;
osdProfile->item_pos[OSD_DISARMED] = -109;
osdProfile->item_pos[OSD_ARTIFICIAL_HORIZON] = -1;
osdProfile->item_pos[OSD_HORIZON_SIDEBARS] = -1;
osdProfile->item_pos[OSD_CURRENT_DRAW] = -23;
osdProfile->item_pos[OSD_MAH_DRAWN] = -18;
osdProfile->item_pos[OSD_CRAFT_NAME] = 1;
}
#endif