mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Rename minLimit/maxLimit to angleAtMin and angleAtMax. Remove unneeded
MSP_SET_SERVO_LIMIT. Bump MSP API version. Add basic sanity checks to MSP_SET_SERVO_CONF, reset all servos and adhere to the msp packet's data size.
This commit is contained in:
parent
da6ee6ffb7
commit
c142e3dfe9
6 changed files with 17 additions and 28 deletions
|
@ -483,8 +483,8 @@ static void resetConf(void)
|
|||
currentProfile->servoConf[i].max = DEFAULT_SERVO_MAX;
|
||||
currentProfile->servoConf[i].middle = DEFAULT_SERVO_MIDDLE;
|
||||
currentProfile->servoConf[i].rate = servoRates[i];
|
||||
currentProfile->servoConf[i].minLimit = DEFAULT_SERVO_MIN_LIMIT;
|
||||
currentProfile->servoConf[i].maxLimit = DEFAULT_SERVO_MAX_LIMIT;
|
||||
currentProfile->servoConf[i].angleAtMin = DEFAULT_SERVO_MIN_ANGLE;
|
||||
currentProfile->servoConf[i].angleAtMax = DEFAULT_SERVO_MAX_ANGLE;
|
||||
currentProfile->servoConf[i].forwardFromChannel = CHANNEL_FORWARDING_DISABLED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue