20 #include "../config/rx.h"
21 #include "../config/rc_adjustments.h"
30 #define RC_RATE_MAX 250
77 #define ADJUSTMENT_FUNCTION_COUNT 39
103 #define ADJUSTMENT_INDEX_OFFSET 1
112 #ifndef MAX_SIMULTANEOUS_ADJUSTMENT_COUNT
113 #define MAX_SIMULTANEOUS_ADJUSTMENT_COUNT 4 // enough for 4 x 3position switches / 4 aux channel
128 #include "../config/config.h"
struct adjustmentState_s adjustmentState_t
uint8_t adjustmentStateMask
Definition: rc_adjustments.h:117
void rc_adj_update(struct rc_adj *self)
Definition: rc_adjustments.c:269
Definition: rc_adjustments.h:38
Definition: rc_adjustments.h:61
Definition: rc_adjustments.h:54
Definition: rc_adjustments.h:105
Definition: rc_adjustments.h:52
Definition: rc_adjustments.h:84
Definition: rc_adjustments.h:72
Definition: rc_adjustments.h:97
Definition: rc_adjustments.h:46
Definition: rc_adjustments.h:73
adjustmentState_t adjustmentStates[MAX_SIMULTANEOUS_ADJUSTMENT_COUNT]
Definition: rc_adjustments.h:118
Definition: rc_adjustments.h:55
Definition: rc_adjustments.h:56
Definition: rc_adjustments.h:81
Definition: rc_adjustments.h:41
void rc_adj_init(struct rc_adj *self, struct ninja *ninja, struct config *config)
Definition: rc_adjustments.c:342
void rc_adj_update_states(struct rc_adj *self, adjustmentRange_t *adjustmentRanges)
Definition: rc_adjustments.c:325
Definition: rc_adjustments.h:88
Definition: rc_adjustments.h:35
Definition: rc_adjustments.h:68
uint32_t timeoutAt
Definition: rc_adjustments.h:108
Definition: rc_adjustments.h:60
Definition: rc_adjustments.h:63
adjustmentRange_t adjustmentRanges[MAX_ADJUSTMENT_RANGE_COUNT]
Definition: rc_adjustments.h:29
Definition: rc_adjustments.h:48
struct ninja * ninja
pointer to the ninja object on which we are going to be adjusting things
Definition: rc_adjustments.h:121
Definition: rc_adjustments.h:116
adjustmentSelectConfig_t selectConfig
Definition: rc_adjustments.h:94
void rc_adj_reset(struct rc_adj *self)
Definition: rc_adjustments.c:348
Definition: rc_adjustments.h:37
struct adjustmentStepConfig_s adjustmentStepConfig_t
Definition: rc_adjustments.h:51
Definition: rc_adjustments.h:47
Definition: rc_adjustments.h:66
#define MAX_SIMULTANEOUS_ADJUSTMENT_COUNT
Definition: rc_adjustments.h:113
void rc_adj_add_range(struct rc_adj *self, adjustmentRange_t *adjustmentRange)
Definition: rc_adjustments.c:81
Definition: rc_adjustments.h:64
uint8_t mode
Definition: rc_adjustments.h:99
union adjustmentConfig_u adjustmentData_t
Definition: rc_adjustments.h:49
Definition: rc_adjustments.h:45
Definition: rc_adjustments.h:80
adjustmentData_t data
Definition: rc_adjustments.h:100
Definition: rc_adjustments.h:62
Definition: rc_adjustments.h:40
Definition: rc_adjustments.h:65
Definition: rc_adjustments.h:43
adjustmentFunction_e
Definition: rc_adjustments.h:34
Definition: rc_adjustments.h:50
adjustmentMode_e
Definition: rc_adjustments.h:79
struct config * config
modifyable version of the config that is to be adjusted
Definition: rc_adjustments.h:124
Definition: rc_adjustments.h:71
Definition: rc_adjustments.h:36
Definition: rc_adjustments.h:39
Definition: rc_adjustments.h:57
uint8_t step
Definition: rc_adjustments.h:85
adjustmentStepConfig_t stepConfig
Definition: rc_adjustments.h:93
uint8_t adjustmentFunction
Definition: rc_adjustments.h:98
Definition: rc_adjustments.h:92
Definition: rc_adjustments.h:58
Definition: rc_adjustments.h:53
struct adjustmentConfig_s adjustmentConfig_t
Definition: rc_adjustments.h:59
Definition: rc_adjustments.h:67
Definition: rc_adjustments.h:70
Definition: rc_adjustments.h:69
adjustmentConfig_t config
Definition: rc_adjustments.h:107
uint8_t auxChannelIndex
Definition: rc_adjustments.h:106
uint8_t switchPositions
Definition: rc_adjustments.h:89
Definition: rc_adjustments.h:44
adjustmentRange_t * range
Definition: rc_adjustments.h:109
Definition: rc_adjustments.h:42
struct adjustmentSelectConfig_s adjustmentSelectConfig_t