Subversion Repositories FlightCtrl

Rev

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

Rev 2051 Rev 2052
Line 40... Line 40...
40
typedef struct {
40
typedef struct {
41
  // IMU
41
  // IMU
42
  /*PMM*/uint8_t gyroP;
42
  /*PMM*/uint8_t gyroP;
43
  /* P */uint8_t gyroI;
43
  /* P */uint8_t gyroI;
44
  /* P */uint8_t gyroD;
44
  /* P */uint8_t gyroD;
45
  /* P */uint8_t compassFixedHeading;
45
  /* P */uint8_t compassControlHeading;
Line 46... Line 46...
46
 
46
 
47
  // Control
47
  // Control
48
  /* P */uint8_t externalControl;
48
  /* P */uint8_t externalControl;
49
  /* P */uint8_t dynamicStability;
49
  /* P */uint8_t dynamicStability;
Line 160... Line 160...
160
  uint8_t dynamicStability; // PID limit for Attitude controller
160
  uint8_t dynamicStability; // PID limit for Attitude controller
Line 161... Line 161...
161
 
161
 
162
  uint8_t IFactor;
162
  uint8_t IFactor;
Line -... Line 163...
-
 
163
  uint8_t yawIFactor;
163
  uint8_t yawIFactor;
164
 
-
 
165
  uint8_t compassMode;      // bitflag thing.
164
 
166
  uint8_t compassYawCorrection;
Line 165... Line 167...
165
  uint8_t compassYawCorrection;
167
  uint8_t compassBendingReturnSpeed;
166
  uint8_t compassFixedHeading;
168
  uint8_t compassP;
167
 
169
 
Line 221... Line 223...
221
 
223
 
222
// bit mask for staticParams.bitConfig
224
// bit mask for staticParams.bitConfig
223
#define CFG_SIMPLE_HEIGHT_CONTROL               (1<<0)
225
#define CFG_SIMPLE_HEIGHT_CONTROL               (1<<0)
224
#define CFG_SIMPLE_HC_HOLD_SWITCH       (1<<1)
226
#define CFG_SIMPLE_HC_HOLD_SWITCH       (1<<1)
225
#define CFG_HEADING_HOLD                        (1<<2)
227
#define CFG_HEADING_HOLD                        (1<<2)
226
#define CFG_COMPASS_ACTIVE                          (1<<3)
228
#define CFG_COMPASS_ENABLED             (1<<3)
227
#define CFG_UNUSED                                      (1<<4)
229
#define CFG_UNUSED                              (1<<4)
228
#define CFG_GPS_ACTIVE                          (1<<5)
230
#define CFG_GPS_ENABLED                         (1<<5)
229
#define CFG_AXIS_COUPLING_ACTIVE        (1<<6)
231
#define CFG_AXIS_COUPLING_ACTIVE        (1<<6)
Line 230... Line 232...
230
#define CFG_GYRO_SATURATION_PREVENTION  (1<<7)
232
#define CFG_GYRO_SATURATION_PREVENTION  (1<<7)
231
 
233