From d77e3d8a29b27ce19b0b2db0f1482801d24b8723 Mon Sep 17 00:00:00 2001 From: onelivesleft Date: Tue, 18 Sep 2018 12:02:56 +0100 Subject: [PATCH] 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 --- src/main/fc/rc_adjustments.c | 2 +- src/main/fc/rc_adjustments.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/fc/rc_adjustments.c b/src/main/fc/rc_adjustments.c index fdbc55f2da..6188cb9e4b 100644 --- a/src/main/fc/rc_adjustments.c +++ b/src/main/fc/rc_adjustments.c @@ -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. diff --git a/src/main/fc/rc_adjustments.h b/src/main/fc/rc_adjustments.h index e5db10d2cb..29fcbf15aa 100644 --- a/src/main/fc/rc_adjustments.h +++ b/src/main/fc/rc_adjustments.h @@ -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...