1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Reducing the maximum number of mode ranges from 40 to 20 to free up some

configuration storage space.
This commit is contained in:
Dominic Clifton 2015-05-30 00:03:30 +01:00
parent e6733b4dfc
commit 6f3c16fe6c
2 changed files with 2 additions and 7 deletions

View file

@ -139,7 +139,7 @@ static uint32_t activeFeaturesLatch = 0;
static uint8_t currentControlRateProfileIndex = 0;
controlRateConfig_t *currentControlRateProfile;
static const uint8_t EEPROM_CONF_VERSION = 100;
static const uint8_t EEPROM_CONF_VERSION = 101;
static void resetAccelerometerTrims(flightDynamicsTrims_t *accelerometerTrims)
{

View file

@ -84,12 +84,7 @@ typedef enum {
#define THR_CE (3 << (2 * THROTTLE))
#define THR_HI (2 << (2 * THROTTLE))
#define MAX_MODE_ACTIVATION_CONDITION_COUNT 40
// 40 is enough for 1 mode for each position of 11 * 3 position switches and a 6 pos switch.
// however, that is unlikely because you don't define the 'off' positions, so for a 3 position
// switch it's normal that only 2 values would be configured.
// this leaves plenty of 'slots' free for cases where you enable multiple modes for a switch
// position (like gps rth + horizon + baro + beeper)
#define MAX_MODE_ACTIVATION_CONDITION_COUNT 20
#define CHANNEL_RANGE_MIN 900
#define CHANNEL_RANGE_MAX 2100