Subversion Repositories FlightCtrl

Rev

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

Rev 706 Rev 707
Line 37... Line 37...
37
#define CFG_LOOP_LEFT           0x04
37
#define CFG_LOOP_LEFT           0x04
38
#define CFG_LOOP_RIGHT          0x08
38
#define CFG_LOOP_RIGHT          0x08
Line 39... Line 39...
39
 
39
 
40
// defines for lookup mk_param_struct.ChannelAssignment
40
// defines for lookup mk_param_struct.ChannelAssignment
41
#define CH_PITCH    0
41
#define CH_PITCH    0
42
#define CH_ROLL    1
42
#define CH_ROLL         1
43
#define CH_GAS     2
43
#define CH_THRUST       2
44
#define CH_YAW    3
44
#define CH_YAW          3
45
#define CH_POTI1   4
45
#define CH_POTI1        4
46
#define CH_POTI2   5
46
#define CH_POTI2        5
47
#define CH_POTI3   6
47
#define CH_POTI3        6
Line 48... Line 48...
48
#define CH_POTI4   7
48
#define CH_POTI4        7
Line 49... Line 49...
49
 
49
 
50
#define EEPARAM_VERSION 69 // is count up, if EE_Paramater stucture has changed (compatibility)
50
#define EEPARAM_VERSION 69 // is count up, if EE_Paramater stucture has changed (compatibility)
51
 
51
 
52
// values above 250 representing poti1 to poti4
52
// values above 250 representing poti1 to poti4
53
typedef struct
53
typedef struct
54
 {
54
 {
55
   uint8_t ChannelAssignment[8];   // see upper defines for details
55
   uint8_t ChannelAssignment[8];   // see upper defines for details
56
   uint8_t GlobalConfig;           // see upper defines for bitcoding
56
   uint8_t GlobalConfig;           // see upper defines for bitcoding
57
   uint8_t Hight_MinGas;           // Wert : 0-100
57
   uint8_t Hight_MinThrust;           // Wert : 0-100
58
   uint8_t AirPressure_D;            // Wert : 0-250
58
   uint8_t AirPressure_D;            // Wert : 0-250
59
   uint8_t MaxHight;               // Wert : 0-32
59
   uint8_t MaxHight;               // Wert : 0-32
60
   uint8_t Hight_P;                // Wert : 0-32
60
   uint8_t Hight_P;                // Wert : 0-32
61
   uint8_t Hight_Gain;             // Wert : 0-50
61
   uint8_t Hight_Gain;             // Wert : 0-50
62
   uint8_t Hight_ACC_Effect;      // Wert : 0-250
62
   uint8_t Hight_ACC_Effect;      // Wert : 0-250
63
   uint8_t Stick_P;                // Wert : 1-6
63
   uint8_t Stick_P;                // Wert : 1-6
64
   uint8_t Stick_D;                // Wert : 0-64
64
   uint8_t Stick_D;                // Wert : 0-64
65
   uint8_t Yaw_P;                 // Wert : 1-20
65
   uint8_t Yaw_P;                 // Wert : 1-20
66
   uint8_t Gas_Min;                // Wert : 0-32
66
   uint8_t Trust_Min;                // Wert : 0-32
67
   uint8_t Gas_Max;                // Wert : 33-250
67
   uint8_t Trust_Max;                // Wert : 33-250
68
   uint8_t GyroAccFaktor;          // Wert : 1-64
68
   uint8_t GyroAccFaktor;          // Wert : 1-64
69
   uint8_t CompassYawEffect;         // Wert : 0-32
69
   uint8_t CompassYawEffect;         // Wert : 0-32
70
   uint8_t Gyro_P;                 // Wert : 10-250
70
   uint8_t Gyro_P;                 // Wert : 10-250
71
   uint8_t Gyro_I;                 // Wert : 0-250
71
   uint8_t Gyro_I;                 // Wert : 0-250
72
   uint8_t LowVoltageWarning;      // Wert : 0-250
72
   uint8_t LowVoltageWarning;      // Wert : 0-250
73
   uint8_t EmergencyGas;           // Wert : 0-250     //Gaswert bei Empängsverlust
73
   uint8_t EmergencyThrust;           // Wert : 0-250     //Gaswert bei Empängsverlust
74
   uint8_t EmergencyGasDuration;   // Wert : 0-250     // Zeitbis auf EmergencyGas geschaltet wird, wg. Rx-Problemen
74
   uint8_t EmergencyThrustDuration;   // Wert : 0-250     // Zeitbis auf EmergencyThrust geschaltet wird, wg. Rx-Problemen
75
   uint8_t UfoArrangement;         // X oder + Formation
75
   uint8_t UfoArrangement;         // X oder + Formation
76
   uint8_t I_Factor;               // Wert : 0-250
76
   uint8_t I_Factor;               // Wert : 0-250
Line 81... Line 81...
81
   uint8_t ServoPitchControl;       // Wert : 0-250     // Stellung des Servos
81
   uint8_t ServoPitchControl;       // Wert : 0-250     // Stellung des Servos
82
   uint8_t ServoPitchComp;          // Wert : 0-250     // Einfluss Gyro/Servo
82
   uint8_t ServoPitchComp;          // Wert : 0-250     // Einfluss Gyro/Servo
83
   uint8_t ServoPitchMin;           // Wert : 0-250     // Anschlag
83
   uint8_t ServoPitchMin;           // Wert : 0-250     // Anschlag
84
   uint8_t ServoPitchMax;           // Wert : 0-250     // Anschlag
84
   uint8_t ServoPitchMax;           // Wert : 0-250     // Anschlag
85
   uint8_t ServoPitchRefresh;       //
85
   uint8_t ServoPitchRefresh;       //
86
   uint8_t LoopGasLimit;           // Wert: 0-250  max. Gas während Looping
86
   uint8_t LoopThrustLimit;           // Wert: 0-250  max. Gas während Looping
87
   uint8_t LoopThreshold;          // Wert: 0-250  Schwelle für Stickausschlag
87
   uint8_t LoopThreshold;          // Wert: 0-250  Schwelle für Stickausschlag
88
   uint8_t LoopHysteresis;         // Wert: 0-250  Hysterese für Stickausschlag
88
   uint8_t LoopHysteresis;         // Wert: 0-250  Hysterese für Stickausschlag
89
   uint8_t Yaw_PosFeedback;        // Wert: 0-250  Faktor, mit dem Yaw die Achsen Roll und Pitch koppelt (PitchRollMitkopplung)
89
   uint8_t Yaw_PosFeedback;        // Wert: 0-250  Faktor, mit dem Yaw die Achsen Roll und Pitch koppelt (PitchRollMitkopplung)
90
   uint8_t Yaw_NegFeedback;        // Wert: 0-250  Faktor, mit dem Yaw die Achsen Roll und Pitch Gegenkoppelt (PitchRollGegenkopplung)
90
   uint8_t Yaw_NegFeedback;        // Wert: 0-250  Faktor, mit dem Yaw die Achsen Roll und Pitch Gegenkoppelt (PitchRollGegenkopplung)
91
   uint8_t AngleTurnOverPitch;     // Wert: 0-250  180°-Punkt
91
   uint8_t AngleTurnOverPitch;     // Wert: 0-250  180°-Punkt