mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
added dterm configurable expo curve to MSP
This commit is contained in:
parent
8f2d21460a
commit
bddd7e37f6
1 changed files with 14 additions and 1 deletions
|
@ -1737,6 +1737,12 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
|
||||||
#else
|
#else
|
||||||
sbufWriteU16(dst, 0);
|
sbufWriteU16(dst, 0);
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(USE_DYN_LPF)
|
||||||
|
// Added in MSP API 1.44
|
||||||
|
sbufWriteU8(dst, currentPidProfile->dyn_lpf_curve_expo);
|
||||||
|
#else
|
||||||
|
sbufWriteU8(dst, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case MSP_PID_ADVANCED:
|
case MSP_PID_ADVANCED:
|
||||||
|
@ -2561,7 +2567,14 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
||||||
sbufReadU16(src);
|
sbufReadU16(src);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
if (sbufBytesRemaining(src) >= 1) {
|
||||||
|
// Added in MSP API 1.44
|
||||||
|
#if defined(USE_DYN_LPF)
|
||||||
|
currentPidProfile->dyn_lpf_curve_expo = sbufReadU8(src);
|
||||||
|
#else
|
||||||
|
sbufReadU8(src);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
// reinitialize the gyro filters with the new values
|
// reinitialize the gyro filters with the new values
|
||||||
validateAndFixGyroConfig();
|
validateAndFixGyroConfig();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue