mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 07:15:18 +03:00
Fix Configurator Save Error
This commit is contained in:
parent
9782fb1555
commit
0c5ea0f5c6
1 changed files with 21 additions and 21 deletions
|
@ -1666,27 +1666,6 @@ static bool processInCommand(void)
|
||||||
|
|
||||||
case MSP_SET_BF_CONFIG:
|
case MSP_SET_BF_CONFIG:
|
||||||
|
|
||||||
case MSP_SET_PID_ADVANCED_CONFIG :
|
|
||||||
masterConfig.gyro_sync_denom = read8();
|
|
||||||
masterConfig.pid_process_denom = read8();
|
|
||||||
masterConfig.use_unsyncedPwm = read8();
|
|
||||||
masterConfig.fast_pwm_protocol = read8();
|
|
||||||
masterConfig.motor_pwm_rate = read16();
|
|
||||||
break;
|
|
||||||
case MSP_SET_FILTER_CONFIG :
|
|
||||||
masterConfig.gyro_soft_lpf_hz = read8();
|
|
||||||
currentProfile->pidProfile.dterm_lpf_hz = read16();
|
|
||||||
currentProfile->pidProfile.yaw_lpf_hz = read16();
|
|
||||||
break;
|
|
||||||
case MSP_SET_ADVANCED_TUNING:
|
|
||||||
currentProfile->pidProfile.rollPitchItermIgnoreRate = read16();
|
|
||||||
currentProfile->pidProfile.yawItermIgnoreRate = read16();
|
|
||||||
currentProfile->pidProfile.yaw_p_limit = read16();
|
|
||||||
break;
|
|
||||||
case MSP_SET_TEMPORARY_COMMANDS:
|
|
||||||
currentControlRateProfile->rcYawRate8 = read8();
|
|
||||||
break;
|
|
||||||
|
|
||||||
#ifdef USE_QUAD_MIXER_ONLY
|
#ifdef USE_QUAD_MIXER_ONLY
|
||||||
read8(); // mixerMode ignored
|
read8(); // mixerMode ignored
|
||||||
#else
|
#else
|
||||||
|
@ -1801,6 +1780,27 @@ static bool processInCommand(void)
|
||||||
// proceed as usual with MSP commands
|
// proceed as usual with MSP commands
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
case MSP_SET_PID_ADVANCED_CONFIG :
|
||||||
|
masterConfig.gyro_sync_denom = read8();
|
||||||
|
masterConfig.pid_process_denom = read8();
|
||||||
|
masterConfig.use_unsyncedPwm = read8();
|
||||||
|
masterConfig.fast_pwm_protocol = read8();
|
||||||
|
masterConfig.motor_pwm_rate = read16();
|
||||||
|
break;
|
||||||
|
case MSP_SET_FILTER_CONFIG :
|
||||||
|
masterConfig.gyro_soft_lpf_hz = read8();
|
||||||
|
currentProfile->pidProfile.dterm_lpf_hz = read16();
|
||||||
|
currentProfile->pidProfile.yaw_lpf_hz = read16();
|
||||||
|
break;
|
||||||
|
case MSP_SET_ADVANCED_TUNING:
|
||||||
|
currentProfile->pidProfile.rollPitchItermIgnoreRate = read16();
|
||||||
|
currentProfile->pidProfile.yawItermIgnoreRate = read16();
|
||||||
|
currentProfile->pidProfile.yaw_p_limit = read16();
|
||||||
|
break;
|
||||||
|
case MSP_SET_TEMPORARY_COMMANDS:
|
||||||
|
currentControlRateProfile->rcYawRate8 = read8();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// we do not know how to handle the (valid) message, indicate error MSP $M!
|
// we do not know how to handle the (valid) message, indicate error MSP $M!
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue