1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Increase MAX_ADJUSTMENT_RANGE_COUNT from 15 to 24

Since we are limited to only 4 aux channels, it would be good to increase this count in order to allow more multiplexing of data into fewer aux channels.  At 18 we can allow full PID editting for Roll+Pitch+Yaw using 1 aux channel.  24 leaves room above that... maybe 30 or 32 would be better?

Upped to 30 as per @etracer65's suggestion

increased PG_REGISTER_ARRAY version
This commit is contained in:
onelivesleft 2018-09-18 12:02:56 +01:00
parent 27cbf0515d
commit d77e3d8a29
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@
#include "rx/rx.h"
PG_REGISTER_ARRAY(adjustmentRange_t, MAX_ADJUSTMENT_RANGE_COUNT, adjustmentRanges, PG_ADJUSTMENT_RANGE_CONFIG, 0);
PG_REGISTER_ARRAY(adjustmentRange_t, MAX_ADJUSTMENT_RANGE_COUNT, adjustmentRanges, PG_ADJUSTMENT_RANGE_CONFIG, 1);
uint8_t pidAudioPositionToModeMap[7] = {
// on a pot with a center detent, it's easy to have center area for off/default, then three positions to the left and three to the right.

View file

@ -77,7 +77,7 @@ typedef struct adjustmentConfig_s {
adjustmentData_t data;
} adjustmentConfig_t;
#define MAX_ADJUSTMENT_RANGE_COUNT 15
#define MAX_ADJUSTMENT_RANGE_COUNT 30
typedef struct adjustmentRange_s {
// when aux channel is in range...