mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 07:15:18 +03:00
Remove MW23 pid controller
This commit is contained in:
parent
8e744e874c
commit
fb35cc6477
5 changed files with 9 additions and 159 deletions
|
@ -1309,7 +1309,7 @@ static bool processInCommand(void)
|
|||
break;
|
||||
case MSP_SET_PID_CONTROLLER:
|
||||
oldPid = currentProfile->pidProfile.pidController;
|
||||
currentProfile->pidProfile.pidController = read8();
|
||||
currentProfile->pidProfile.pidController = constrain(read8(), 1, 2);
|
||||
pidSetController(currentProfile->pidProfile.pidController);
|
||||
if (oldPid != currentProfile->pidProfile.pidController) setGyroSamplingSpeed(0); // recalculate looptimes for new PID
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue