Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2119 → Rev 2122

/branches/dongfang_FC_fixedwing/configuration.h
112,13 → 112,20
 
typedef struct {
uint8_t RCPolarity; // 1=positive, 0=negative. Use positive with Futaba receiver, negative with FrSky.
uint8_t trim;
uint8_t HWTrim;
uint8_t variableOffset;
uint8_t channels[MAX_CHANNELS];
} ChannelMap_t;
extern ChannelMap_t channelMap;
 
// With fixed wing, we need some way to trim the plane. This is done during a trim flight without gyros activated,
// and then save in a succeeding gyro calibration command.
typedef struct {
int16_t trim[MAX_CHANNELS];
} RCTrim_t;
extern RCTrim_t rcTrim;
 
typedef struct {
int16_t offsets[3];
} sensorOffset_t;
 
221,6 → 228,7
 
void IMUConfig_default(void);
void channelMap_default(void);
void rcTrim_setZero(void);
void paramSet_default(uint8_t setnumber);
 
void configuration_setFlightParameters(uint8_t newFlightMode);