Subversion Repositories FlightCtrl

Rev

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

Rev 2122 Rev 2129
Line 40... Line 40...
40
  uint8_t rateTolerance;
40
  uint8_t rateTolerance;
Line 41... Line 41...
41
 
41
 
42
  uint8_t gyroActivityDamping;
42
  uint8_t gyroActivityDamping;
43
  uint8_t driftCompDivider; // 1/k  (Koppel_ACC_Wirkung)
43
  uint8_t driftCompDivider; // 1/k  (Koppel_ACC_Wirkung)
-
 
44
  uint8_t driftCompLimit;   // limit for gyrodrift compensation
44
  uint8_t driftCompLimit;   // limit for gyrodrift compensation
45
  int8_t gyroCalibrationTweak[3];
Line 45... Line 46...
45
} IMUConfig_t;
46
} IMUConfig_t;
Line 46... Line 47...
46
 
47
 
Line 90... Line 91...
90
 
91
 
91
  // Output and servo
92
  // Output and servo
92
  /*PMM*/uint8_t output0Timing;
93
  /*PMM*/uint8_t output0Timing;
Line 93... Line 94...
93
  /*PMM*/uint8_t output1Timing;
94
  /*PMM*/uint8_t output1Timing;
Line 94... Line 95...
94
 
95
 
95
  uint8_t servoManualControl[2];
96
  uint8_t gimbalServoManualControl[2];
Line 96... Line 97...
96
 
97
 
Line 109... Line 110...
109
  uint8_t sourceIdx, targetIdx;
110
  uint8_t sourceIdx, targetIdx;
110
} XLATION;
111
} XLATION;
111
*/
112
*/
Line 112... Line 113...
112
 
113
 
-
 
114
typedef struct {
113
typedef struct {
115
  uint8_t RCPolarity; // 1=positive, 0=negative. Use positive with Futaba receiver, negative with FrSky.
114
        uint8_t HWTrim;
116
  uint8_t HWTrim;
115
        uint8_t variableOffset;
117
  uint8_t variableOffset;
116
  uint8_t channels[MAX_CHANNELS];
118
  uint8_t channels[MAX_CHANNELS];
117
} ChannelMap_t;
119
} ChannelMap_t;
Line -... Line 120...
-
 
120
extern ChannelMap_t channelMap;
-
 
121
 
-
 
122
// With fixed wing, we need some way to trim the plane. This is done during a trim flight without gyros activated,
-
 
123
// and then save in a succeeding gyro calibration command.
-
 
124
typedef struct {
-
 
125
  int16_t trim[MAX_CHANNELS];
-
 
126
} RCTrim_t;
118
extern ChannelMap_t channelMap;
127
extern RCTrim_t rcTrim;
119
 
128
 
120
typedef struct {
129
typedef struct {
Line 121... Line 130...
121
  int16_t offsets[3];
130
  int16_t offsets[3];