Merge pull request #5247 from etracer65/fix_gyro_lpf_reset_gyro_rate
Removed duplicate legacy gyro_lpf validation from msp.c
This commit is contained in:
commit
f75c07959b
|
@ -1157,13 +1157,8 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSP_ADVANCED_CONFIG:
|
case MSP_ADVANCED_CONFIG:
|
||||||
if (gyroConfig()->gyro_lpf) {
|
|
||||||
sbufWriteU8(dst, 8); // If gyro_lpf != OFF then looptime is set to 1000
|
|
||||||
sbufWriteU8(dst, 1);
|
|
||||||
} else {
|
|
||||||
sbufWriteU8(dst, gyroConfig()->gyro_sync_denom);
|
sbufWriteU8(dst, gyroConfig()->gyro_sync_denom);
|
||||||
sbufWriteU8(dst, pidConfig()->pid_process_denom);
|
sbufWriteU8(dst, pidConfig()->pid_process_denom);
|
||||||
}
|
|
||||||
sbufWriteU8(dst, motorConfig()->dev.useUnsyncedPwm);
|
sbufWriteU8(dst, motorConfig()->dev.useUnsyncedPwm);
|
||||||
sbufWriteU8(dst, motorConfig()->dev.motorPwmProtocol);
|
sbufWriteU8(dst, motorConfig()->dev.motorPwmProtocol);
|
||||||
sbufWriteU16(dst, motorConfig()->dev.motorPwmRate);
|
sbufWriteU16(dst, motorConfig()->dev.motorPwmRate);
|
||||||
|
|
Loading…
Reference in New Issue