mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
Reduce maximum servos from 10 to 8.
1) the 2 extra servos were not used for anything, yet. 2) the MSP packet to set ALL the servo configurations in one go is larger than the MSP input buffer size. Likely the MSP_SET_SERVO_CONF should be updated with command that takes an index of a servo to configure, as per mode ranges/colors/leds/etc. Fixes #1002
This commit is contained in:
parent
78b52c53d5
commit
9a8a31676b
4 changed files with 28 additions and 16 deletions
|
@ -128,7 +128,7 @@ static uint32_t activeFeaturesLatch = 0;
|
|||
static uint8_t currentControlRateProfileIndex = 0;
|
||||
controlRateConfig_t *currentControlRateProfile;
|
||||
|
||||
static const uint8_t EEPROM_CONF_VERSION = 101;
|
||||
static const uint8_t EEPROM_CONF_VERSION = 102;
|
||||
|
||||
static void resetAccelerometerTrims(flightDynamicsTrims_t *accelerometerTrims)
|
||||
{
|
||||
|
@ -348,7 +348,7 @@ static void resetConf(void)
|
|||
{
|
||||
int i;
|
||||
#ifdef USE_SERVOS
|
||||
int8_t servoRates[MAX_SUPPORTED_SERVOS] = { 30, 30, 100, 100, 100, 100, 100, 100, 100, 100 };
|
||||
int8_t servoRates[MAX_SUPPORTED_SERVOS] = { 30, 30, 100, 100, 100, 100, 100, 100 };
|
||||
;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue