1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Re-name ezDisarm variables and tidying up (#13835)

* just re-naming variables and tidying up

* change name to landing_disarm_threshold
This commit is contained in:
ctzsnooze 2024-08-21 17:01:49 +10:00 committed by GitHub
parent 8feb741e17
commit dd73ce4dd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 14 additions and 15 deletions

View file

@ -266,7 +266,7 @@ static uint16_t cmsx_tpa_breakpoint;
static int8_t cmsx_tpa_low_rate;
static uint16_t cmsx_tpa_low_breakpoint;
static uint8_t cmsx_tpa_low_always;
static uint8_t cmsx_ez_landing_disarm_threshold;
static uint8_t cmsx_landing_disarm_threshold;
static const void *cmsx_simplifiedTuningOnEnter(displayPort_t *pDisp)
{
@ -611,7 +611,7 @@ static const void *cmsx_profileOtherOnEnter(displayPort_t *pDisp)
cmsx_tpa_low_rate = pidProfile->tpa_low_rate;
cmsx_tpa_low_breakpoint = pidProfile->tpa_low_breakpoint;
cmsx_tpa_low_always = pidProfile->tpa_low_always;
cmsx_ez_landing_disarm_threshold = pidProfile->ez_landing_disarm_threshold;
cmsx_landing_disarm_threshold = pidProfile->landing_disarm_threshold;
return NULL;
}
@ -669,7 +669,7 @@ static const void *cmsx_profileOtherOnExit(displayPort_t *pDisp, const OSD_Entry
pidProfile->tpa_low_rate = cmsx_tpa_low_rate;
pidProfile->tpa_low_breakpoint = cmsx_tpa_low_breakpoint;
pidProfile->tpa_low_always = cmsx_tpa_low_always;
pidProfile->ez_landing_disarm_threshold = cmsx_ez_landing_disarm_threshold;
pidProfile->landing_disarm_threshold = cmsx_landing_disarm_threshold;
initEscEndpoints();
return NULL;
@ -730,7 +730,7 @@ static const OSD_Entry cmsx_menuProfileOtherEntries[] = {
{ "TPA LOW RATE", OME_INT8, NULL, &(OSD_INT8_t) { &cmsx_tpa_low_rate, TPA_LOW_RATE_MIN, TPA_MAX , 1} },
{ "TPA LOW BRKPT", OME_UINT16, NULL, &(OSD_UINT16_t){ &cmsx_tpa_low_breakpoint, 1000, 2000, 10} },
{ "TPA LOW ALWYS", OME_Bool, NULL, &cmsx_tpa_low_always },
{ "EZDISARM THR", OME_UINT8, NULL, &(OSD_UINT8_t) { &cmsx_ez_landing_disarm_threshold, 0, 150, 1} },
{ "EZDISARM THR", OME_UINT8, NULL, &(OSD_UINT8_t) { &cmsx_landing_disarm_threshold, 0, 150, 1} },
{ "BACK", OME_Back, NULL, NULL },
{ NULL, OME_END, NULL, NULL}