Subversion Repositories FlightCtrl

Rev

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

Rev 1077 Rev 1078
Line 20... Line 20...
20
#define PID_MM3_Z_RANGE         17 // word
20
#define PID_MM3_Z_RANGE         17 // word
21
#endif
21
#endif
Line 22... Line 22...
22
 
22
 
Line 23... Line 23...
23
#define EEPROM_ADR_PARAMSET_BEGIN      100
23
#define EEPROM_ADR_PARAMSET_BEGIN      100
24
 
24
 
25
// bit mask for mk_param_struct.GlobalConfig
25
// bit mask for ParamSet.GlobalConfig
26
#define CFG_HEIGHT_CONTROL                      0x01
26
#define CFG_HEIGHT_CONTROL                      0x01
27
#define CFG_HEIGHT_SWITCH                       0x02
27
#define CFG_HEIGHT_SWITCH                       0x02
28
#define CFG_HEADING_HOLD                        0x04
28
#define CFG_HEADING_HOLD                        0x04
29
#define CFG_COMPASS_ACTIVE                      0x08
29
#define CFG_COMPASS_ACTIVE                      0x08
30
#define CFG_COMPASS_FIX                         0x10
30
#define CFG_COMPASS_FIX                         0x10
31
#define CFG_GPS_ACTIVE                          0x20
31
#define CFG_GPS_ACTIVE                          0x20
Line 32... Line 32...
32
#define CFG_AXIS_COUPLING_ACTIVE        0x40
32
#define CFG_AXIS_COUPLING_ACTIVE        0x40
33
#define CFG_ROTARY_RATE_LIMITER         0x80
33
#define CFG_ROTARY_RATE_LIMITER         0x80
34
 
34
 
35
// bit mask for mk_param_struct.LoopConfig
35
// bit mask for ParamSet.BitConfig
36
#define CFG_LOOP_UP                     0x01
36
#define CFG_LOOP_UP                     0x01
-
 
37
#define CFG_LOOP_DOWN           0x02
Line 37... Line 38...
37
#define CFG_LOOP_DOWN           0x02
38
#define CFG_LOOP_LEFT           0x04
38
#define CFG_LOOP_LEFT           0x04
39
#define CFG_LOOP_RIGHT          0x08
39
#define CFG_LOOP_RIGHT          0x08
40
#define CFG_HEIGHT_3SWITCH      0x10
40
 
41
 
41
// defines for lookup mk_param_struct.ChannelAssignment
42
// defines for lookup ParamSet.ChannelAssignment
42
#define CH_NICK         0
43
#define CH_NICK         0
43
#define CH_ROLL         1
44
#define CH_ROLL         1
44
#define CH_GAS          2
45
#define CH_GAS          2
45
#define CH_YAW          3
46
#define CH_YAW          3
Line 46... Line 47...
46
#define CH_POTI1        4
47
#define CH_POTI1        4
Line 47... Line 48...
47
#define CH_POTI2        5
48
#define CH_POTI2        5
48
#define CH_POTI3        6
49
#define CH_POTI3        6
49
#define CH_POTI4        7
50
#define CH_POTI4        7
50
 
51
 
Line 101... Line 102...
101
   uint8_t J16Bitmask;                     // for the J16 Output
102
   uint8_t J16Bitmask;                     // for the J16 Output
102
   uint8_t J16Timing;                      // for the J16 Output
103
   uint8_t J16Timing;                      // for the J16 Output
103
   uint8_t J17Bitmask;                     // for the J17 Output
104
   uint8_t J17Bitmask;                     // for the J17 Output
104
   uint8_t J17Timing;                      // for the J17 Output
105
   uint8_t J17Timing;                      // for the J17 Output
105
   uint8_t NaviGpsModeControl;     // Parameters for the Naviboard
106
   uint8_t NaviGpsModeControl;     // Parameters for the Naviboard
106
   uint8_t NaviGpsGain;
107
   uint8_t NaviGpsGain;                    // overall gain for GPS-PID controller
107
   uint8_t NaviGpsP;
108
   uint8_t NaviGpsP;                       // P gain for GPS-PID controller
108
   uint8_t NaviGpsI;
109
   uint8_t NaviGpsI;                       // I gain for GPS-PID controller
109
   uint8_t NaviGpsD;
110
   uint8_t NaviGpsD;               // D gain for GPS-PID controller
110
   uint8_t NaviGpsACC;
111
   uint8_t NaviGpsACC;             // ACC gain for GPS-PID controller
-
 
112
   uint8_t NaviGpsMinSat;          // number of sattelites neccesary for GPS functions
-
 
113
   uint8_t NaviStickThreshold;     // activation threshild for detection of manual stick movements
111
   uint8_t NaviGpsMinSat;
114
   uint8_t NaviWindCorrection;     // streng of wind course correction
112
   uint8_t NaviStickThreshold;
115
   uint8_t NaviSpeedCompensation;
-
 
116
   uint8_t NaviOperatingRadius;    // Radius limit in m around start position for GPS flights
-
 
117
   uint8_t NaviAngleLimitation;    // limitation of attitude angle controlled by the gps algorithm
113
   uint8_t ExternalControl;        // for serial Control
118
   uint8_t ExternalControl;        // for serial Control
114
   uint8_t LoopConfig;             // see upper defines for bitcoding
119
   uint8_t BitConfig;              // see upper defines for bitcoding
115
   uint8_t ServoNickCompInvert;    // Wert : 0-250   0 oder 1  // WICHTIG!!! am Ende lassen
120
   uint8_t ServoNickCompInvert;    // Wert : 0-250   0 oder 1  // WICHTIG!!! am Ende lassen
116
   uint8_t Reserved[4];
121
   uint8_t Reserved[4];
117
   int8_t Name[12];
122
   int8_t Name[12];
118
 } paramset_t;
123
 } paramset_t;