mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
add thrust linearization to CSM
This commit is contained in:
parent
08a87b72fc
commit
e375ac1c21
1 changed files with 6 additions and 0 deletions
|
@ -367,6 +367,7 @@ static uint8_t cmsx_angleStrength;
|
||||||
static uint8_t cmsx_horizonStrength;
|
static uint8_t cmsx_horizonStrength;
|
||||||
static uint8_t cmsx_horizonTransition;
|
static uint8_t cmsx_horizonTransition;
|
||||||
static uint8_t cmsx_throttleBoost;
|
static uint8_t cmsx_throttleBoost;
|
||||||
|
static uint8_t cmsx_thrustLinearization;
|
||||||
static uint16_t cmsx_itermAcceleratorGain;
|
static uint16_t cmsx_itermAcceleratorGain;
|
||||||
static uint16_t cmsx_itermThrottleThreshold;
|
static uint16_t cmsx_itermThrottleThreshold;
|
||||||
static uint8_t cmsx_motorOutputLimit;
|
static uint8_t cmsx_motorOutputLimit;
|
||||||
|
@ -407,6 +408,7 @@ static const void *cmsx_profileOtherOnEnter(displayPort_t *pDisp)
|
||||||
cmsx_itermThrottleThreshold = pidProfile->itermThrottleThreshold;
|
cmsx_itermThrottleThreshold = pidProfile->itermThrottleThreshold;
|
||||||
|
|
||||||
cmsx_throttleBoost = pidProfile->throttle_boost;
|
cmsx_throttleBoost = pidProfile->throttle_boost;
|
||||||
|
cmsx_thrustLinearization = pidProfile->thrustLinearization;
|
||||||
cmsx_motorOutputLimit = pidProfile->motor_output_limit;
|
cmsx_motorOutputLimit = pidProfile->motor_output_limit;
|
||||||
cmsx_autoProfileCellCount = pidProfile->auto_profile_cell_count;
|
cmsx_autoProfileCellCount = pidProfile->auto_profile_cell_count;
|
||||||
|
|
||||||
|
@ -450,6 +452,7 @@ static const void *cmsx_profileOtherOnExit(displayPort_t *pDisp, const OSD_Entry
|
||||||
pidProfile->itermThrottleThreshold = cmsx_itermThrottleThreshold;
|
pidProfile->itermThrottleThreshold = cmsx_itermThrottleThreshold;
|
||||||
|
|
||||||
pidProfile->throttle_boost = cmsx_throttleBoost;
|
pidProfile->throttle_boost = cmsx_throttleBoost;
|
||||||
|
pidProfile->thrustLinearization = cmsx_thrustLinearization;
|
||||||
pidProfile->motor_output_limit = cmsx_motorOutputLimit;
|
pidProfile->motor_output_limit = cmsx_motorOutputLimit;
|
||||||
pidProfile->auto_profile_cell_count = cmsx_autoProfileCellCount;
|
pidProfile->auto_profile_cell_count = cmsx_autoProfileCellCount;
|
||||||
|
|
||||||
|
@ -493,6 +496,9 @@ static const OSD_Entry cmsx_menuProfileOtherEntries[] = {
|
||||||
#ifdef USE_THROTTLE_BOOST
|
#ifdef USE_THROTTLE_BOOST
|
||||||
{ "THR BOOST", OME_UINT8, NULL, &(OSD_UINT8_t) { &cmsx_throttleBoost, 0, 100, 1 } , 0 },
|
{ "THR BOOST", OME_UINT8, NULL, &(OSD_UINT8_t) { &cmsx_throttleBoost, 0, 100, 1 } , 0 },
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_THRUST_LINEARIZATION
|
||||||
|
{ "THR LINEAR", OME_UINT8, NULL, &(OSD_UINT8_t) { &cmsx_thrustLinearization, 0, 150, 1 } , 0 },
|
||||||
|
#endif
|
||||||
#ifdef USE_ITERM_RELAX
|
#ifdef USE_ITERM_RELAX
|
||||||
{ "I_RELAX", OME_TAB, NULL, &(OSD_TAB_t) { &cmsx_iterm_relax, ITERM_RELAX_COUNT - 1, lookupTableItermRelax }, 0 },
|
{ "I_RELAX", OME_TAB, NULL, &(OSD_TAB_t) { &cmsx_iterm_relax, ITERM_RELAX_COUNT - 1, lookupTableItermRelax }, 0 },
|
||||||
{ "I_RELAX TYPE", OME_TAB, NULL, &(OSD_TAB_t) { &cmsx_iterm_relax_type, ITERM_RELAX_TYPE_COUNT - 1, lookupTableItermRelaxType }, 0 },
|
{ "I_RELAX TYPE", OME_TAB, NULL, &(OSD_TAB_t) { &cmsx_iterm_relax_type, ITERM_RELAX_TYPE_COUNT - 1, lookupTableItermRelaxType }, 0 },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue