mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Graft of 'cli_diff_command' into 'master'.
This commit is contained in:
parent
271eb4c023
commit
f9354e53b3
10 changed files with 696 additions and 382 deletions
|
@ -831,24 +831,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue