Rev 2157 | Rev 2160 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2157 | Rev 2158 | ||
---|---|---|---|
Line 90... | Line 90... | ||
90 | } ChannelMap_t; |
90 | } ChannelMap_t; |
91 | extern ChannelMap_t channelMap; |
91 | extern ChannelMap_t channelMap; |
Line 92... | Line 92... | ||
92 | 92 | ||
93 | typedef struct { |
93 | typedef struct { |
94 | char name[12]; |
94 | char name[12]; |
- | 95 | int8_t matrix[MAX_MOTORS][5]; |
|
95 | int8_t motor[MAX_MOTORS][4]; |
96 | //int8_t oppositeMotor[MAX_MOTORS]; |
96 | }__attribute__((packed)) MixerMatrix_t; |
97 | }__attribute__((packed)) MotorMixer_t; |
Line 97... | Line 98... | ||
97 | extern MixerMatrix_t mixerMatrix; |
98 | extern MotorMixer_t motorMixer; |
98 | 99 | ||
99 | typedef struct { |
100 | typedef struct { |
Line 120... | Line 121... | ||
120 | uint8_t accQuadrant; |
121 | uint8_t accQuadrant; |
121 | uint8_t imuReversedFlags; |
122 | uint8_t imuReversedFlags; |
Line 122... | Line 123... | ||
122 | 123 | ||
123 | uint8_t gyroPIDFilterConstant; |
124 | uint8_t gyroPIDFilterConstant; |
124 | uint8_t gyroDWindowLength; |
125 | uint8_t gyroDWindowLength; |
125 | uint8_t gyroDFilterConstant; |
126 | // uint8_t gyroDFilterConstant; |
Line 126... | Line 127... | ||
126 | uint8_t accFilterConstant; |
127 | uint8_t accFilterConstant; |
127 | 128 | ||
Line 262... | Line 263... | ||
262 | #define GRN_OFF {if(boardRelease < 12) PORTB &=~(1<<PORTB1); else PORTB |= (1<<PORTB1);} |
263 | #define GRN_OFF {if(boardRelease < 12) PORTB &=~(1<<PORTB1); else PORTB |= (1<<PORTB1);} |
263 | #define GRN_ON {if(boardRelease < 12) PORTB |= (1<<PORTB1); else PORTB &=~(1<<PORTB1);} |
264 | #define GRN_ON {if(boardRelease < 12) PORTB |= (1<<PORTB1); else PORTB &=~(1<<PORTB1);} |
264 | #define GRN_FLASH PORTB ^= (1<<PORTB1) |
265 | #define GRN_FLASH PORTB ^= (1<<PORTB1) |
Line 265... | Line 266... | ||
265 | 266 | ||
266 | // Mixer table |
267 | // Mixer table |
267 | #define MIX_THROTTLE 0 |
268 | #define MIX_PITCH 0 |
268 | #define MIX_PITCH 1 |
269 | #define MIX_ROLL 1 |
269 | #define MIX_ROLL 2 |
270 | #define MIX_THROTTLE 2 |
- | 271 | #define MIX_YAW 3 |
|
Line 270... | Line 272... | ||
270 | #define MIX_YAW 3 |
272 | #define MIX_OPPOSITE_MOTOR 4 |
Line 271... | Line 273... | ||
271 | 273 | ||
272 | #define VARIABLE_COUNT 8 |
274 | #define VARIABLE_COUNT 8 |
273 | 275 | ||
274 | extern volatile uint8_t MKFlags; |
276 | extern volatile uint8_t MKFlags; |
Line 281... | Line 283... | ||
281 | extern uint16_t isFlying; |
283 | extern uint16_t isFlying; |
Line 282... | Line 284... | ||
282 | 284 | ||
283 | void IMUConfig_default(void); |
285 | void IMUConfig_default(void); |
284 | void channelMap_default(void); |
286 | void channelMap_default(void); |
285 | void paramSet_default(uint8_t setnumber); |
287 | void paramSet_default(uint8_t setnumber); |
Line 286... | Line 288... | ||
286 | void mixerMatrix_default(void); |
288 | void motorMixer_default(void); |
287 | 289 | ||
288 | void configuration_setNormalFlightParameters(void); |
290 | void configuration_setNormalFlightParameters(void); |