Subversion Repositories FlightCtrl

Rev

Rev 2119 | Rev 2124 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2119 Rev 2122
Line 110... Line 110...
110
} XLATION;
110
} XLATION;
111
*/
111
*/
Line 112... Line 112...
112
 
112
 
113
typedef struct {
113
typedef struct {
114
  uint8_t RCPolarity; // 1=positive, 0=negative. Use positive with Futaba receiver, negative with FrSky.
114
  uint8_t RCPolarity; // 1=positive, 0=negative. Use positive with Futaba receiver, negative with FrSky.
115
  uint8_t trim;
115
  uint8_t HWTrim;
116
  uint8_t variableOffset;
116
  uint8_t variableOffset;
117
  uint8_t channels[MAX_CHANNELS];
117
  uint8_t channels[MAX_CHANNELS];
118
} ChannelMap_t;
118
} ChannelMap_t;
Line -... Line 119...
-
 
119
extern ChannelMap_t channelMap;
-
 
120
 
-
 
121
// With fixed wing, we need some way to trim the plane. This is done during a trim flight without gyros activated,
-
 
122
// and then save in a succeeding gyro calibration command.
-
 
123
typedef struct {
-
 
124
  int16_t trim[MAX_CHANNELS];
-
 
125
} RCTrim_t;
119
extern ChannelMap_t channelMap;
126
extern RCTrim_t rcTrim;
120
 
127
 
121
typedef struct {
128
typedef struct {
Line 122... Line 129...
122
  int16_t offsets[3];
129
  int16_t offsets[3];
Line 219... Line 226...
219
extern volatile uint16_t isFlying;
226
extern volatile uint16_t isFlying;
220
extern FlightMode_t currentFlightMode;
227
extern FlightMode_t currentFlightMode;
Line 221... Line 228...
221
 
228
 
222
void IMUConfig_default(void);
229
void IMUConfig_default(void);
-
 
230
void channelMap_default(void);
223
void channelMap_default(void);
231
void rcTrim_setZero(void);
Line 224... Line 232...
224
void paramSet_default(uint8_t setnumber);
232
void paramSet_default(uint8_t setnumber);
225
 
233