Subversion Repositories FlightCtrl

Rev

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

Rev 1215 Rev 1232
Line 52... Line 52...
52
void MotorRegler(void);
52
void MotorRegler(void);
53
void SendMotorData(void);
53
void SendMotorData(void);
54
void CalibrierMittelwert(void);
54
void CalibrierMittelwert(void);
55
void Mittelwert(void);
55
void Mittelwert(void);
56
void SetNeutral(void);
56
void SetNeutral(void);
57
void Piep(unsigned char Anzahl);
57
void Piep(unsigned char Anzahl, unsigned int dauer);
Line 58... Line 58...
58
 
58
 
59
extern unsigned char h,m,s;
59
extern unsigned char h,m,s;
60
extern volatile unsigned char Timeout ;
60
extern volatile unsigned char Timeout ;
61
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
61
extern unsigned char CosinusNickWinkel, CosinusRollWinkel;
Line 102... Line 102...
102
   unsigned char UserParam4;             // Wert : 0-250
102
   unsigned char UserParam4;             // Wert : 0-250
103
   unsigned char ServoNickControl;       // Wert : 0-250     // Stellung des Servos
103
   unsigned char ServoNickControl;       // Wert : 0-250     // Stellung des Servos
104
   unsigned char ServoNickComp;          // Wert : 0-250     // Einfluss Gyro/Servo
104
   unsigned char ServoNickComp;          // Wert : 0-250     // Einfluss Gyro/Servo
105
   unsigned char ServoNickMin;           // Wert : 0-250     // Anschlag
105
   unsigned char ServoNickMin;           // Wert : 0-250     // Anschlag
106
   unsigned char ServoNickMax;           // Wert : 0-250     // Anschlag
106
   unsigned char ServoNickMax;           // Wert : 0-250     // Anschlag
-
 
107
//--- Seit V0.75
-
 
108
   unsigned char ServoRollControl;       // Wert : 0-250     // Stellung des Servos
-
 
109
   unsigned char ServoRollComp;          // Wert : 0-250
-
 
110
   unsigned char ServoRollMin;           // Wert : 0-250
-
 
111
   unsigned char ServoRollMax;           // Wert : 0-250
-
 
112
//---
107
   unsigned char ServoNickRefresh;       //
113
   unsigned char ServoNickRefresh;       //
108
   unsigned char LoopGasLimit;           // Wert: 0-250  max. Gas während Looping
114
   unsigned char LoopGasLimit;           // Wert: 0-250  max. Gas während Looping
109
   unsigned char LoopThreshold;          // Wert: 0-250  Schwelle für Stickausschlag
115
   unsigned char LoopThreshold;          // Wert: 0-250  Schwelle für Stickausschlag
110
   unsigned char LoopHysterese;          // Wert: 0-250  Hysterese für Stickausschlag
116
   unsigned char LoopHysterese;          // Wert: 0-250  Hysterese für Stickausschlag
111
   unsigned char AchsKopplung1;          // Wert: 0-250  Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung)
117
   unsigned char AchsKopplung1;          // Wert: 0-250  Faktor, mit dem Gier die Achsen Roll und Nick koppelt (NickRollMitkopplung)
Line 144... Line 150...
144
   unsigned char NaviPH_LoginTime;
150
   unsigned char NaviPH_LoginTime;
145
//---Ext.Ctrl---------------------------------------------
151
//---Ext.Ctrl---------------------------------------------
146
   unsigned char ExternalControl;        // for serial Control
152
   unsigned char ExternalControl;        // for serial Control
147
//------------------------------------------------
153
//------------------------------------------------
148
   unsigned char BitConfig;             // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
154
   unsigned char BitConfig;             // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt
149
   unsigned char ServoNickCompInvert;    // Wert : 0-250   0 oder 1  // WICHTIG!!! am Ende lassen
155
   unsigned char ServoCompInvert;    // //  0x01 = Nick, 0x02 = Roll   0 oder 1  // WICHTIG!!! am Ende lassen
150
   unsigned char Reserved[4];
156
   unsigned char Reserved[4];
151
   char Name[12];
157
   char Name[12];
152
 };
158
 };
Line 153... Line -...
153
 
-
 
154
 
159
 
155
struct
160
struct
156
  {
161
  {
157
    char Revision;
162
    char Revision;
158
    char Name[12];
163
    char Name[12];
Line 167... Line 172...
167
extern unsigned char Parameter_KompassWirkung;
172
extern unsigned char Parameter_KompassWirkung;
168
extern unsigned char Parameter_Gyro_P;
173
extern unsigned char Parameter_Gyro_P;
169
extern unsigned char Parameter_Gyro_I;
174
extern unsigned char Parameter_Gyro_I;
170
extern unsigned char Parameter_Gier_P;
175
extern unsigned char Parameter_Gier_P;
171
extern unsigned char Parameter_ServoNickControl;
176
extern unsigned char Parameter_ServoNickControl;
-
 
177
extern unsigned char Parameter_ServoRollControl;
172
extern unsigned char Parameter_AchsKopplung1;
178
extern unsigned char Parameter_AchsKopplung1;
173
extern unsigned char Parameter_AchsKopplung2;
179
extern unsigned char Parameter_AchsKopplung2;
174
//extern unsigned char Parameter_AchsGegenKopplung1;
180
//extern unsigned char Parameter_AchsGegenKopplung1;
175
extern unsigned char Parameter_J16Bitmask;             // for the J16 Output
181
extern unsigned char Parameter_J16Bitmask;             // for the J16 Output
176
extern unsigned char Parameter_J16Timing;              // for the J16 Output
182
extern unsigned char Parameter_J16Timing;              // for the J16 Output