Subversion Repositories FlightCtrl

Rev

Rev 39 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 39 Rev 127
Line 27... Line 27...
27
void MotorRegler(void);
27
void MotorRegler(void);
28
void SendMotorData(void);
28
void SendMotorData(void);
29
void CalibrierMittelwert(void);
29
void CalibrierMittelwert(void);
30
void Mittelwert(void);
30
void Mittelwert(void);
31
void SetNeutral(void);
31
void SetNeutral(void);
32
void Piep(unsigned char Anzahl);
-
 
33
void DefaultKonstanten(void);
-
 
34
void DefaultKonstanten1(void);
-
 
35
void DefaultKonstanten2(void);
-
 
Line 36... Line -...
36
 
-
 
37
extern int StickNick,StickRoll,StickGier;
-
 
38
extern char MotorenEin;
-
 
39
extern int  Poti1, Poti2, Poti3, Poti4;
-
 
40
extern volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count;
-
 
41
 
-
 
42
/*
32
 
43
unsigned char h,m,s;
33
unsigned char h,m,s;
44
volatile unsigned char Timeout ;
34
volatile unsigned char Timeout ;
45
unsigned char CosinusNickWinkel, CosinusRollWinkel;
35
unsigned char CosinusNickWinkel, CosinusRollWinkel;
46
volatile long IntegralNick,IntegralNick2;
36
volatile long IntegralNick,IntegralNick2;
47
volatile long IntegralRoll,IntegralRoll2;
37
volatile long IntegralRoll,IntegralRoll2;
48
volatile long Integral_Gier;
38
volatile long Integral_Gier;
49
volatile long Mess_IntegralNick,Mess_IntegralNick2;
39
volatile long Mess_IntegralNick,Mess_IntegralNick2;
50
volatile long Mess_IntegralRoll,Mess_IntegralRoll2;
40
volatile long Mess_IntegralRoll,Mess_IntegralRoll2;
51
volatile long Mess_Integral_Gier;
41
volatile long Mess_Integral_Gier;
-
 
42
volatile int  DiffNick,DiffRoll;
-
 
43
extern int  Poti1, Poti2, Poti3, Poti4,Poti5,Poti6,Poti7,Poti8;
52
volatile int  DiffNick,DiffRoll;
44
volatile unsigned char Motor_Vorne,Motor_Hinten,Motor_Rechts,Motor_Links, Count;
53
unsigned char MotorWert[5];
45
unsigned char MotorWert[5];
-
 
46
volatile unsigned char SenderOkay;
54
volatile unsigned char SenderOkay;
47
int StickNick,StickRoll,StickGier;
55
*/
-
 
-
 
48
char MotorenEin;
Line 56... Line 49...
56
 
49
extern void DefaultKonstanten(void);
57
 
50
 
58
#define  STRUCT_PARAM_LAENGE  58
51
#define  STRUCT_PARAM_LAENGE  58
59
struct mk_param_struct
52
struct mk_param_struct
60
 {
53
 {
61
   unsigned char Kanalbelegung[8];        // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3
54
   unsigned char Kanalbelegung[12];        // GAS[0], GIER[1],NICK[2], ROLL[3], POTI1, POTI2, POTI3 Poti5 Poti6 Poti7 Poti8
62
   unsigned char GlobalConfig;            // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv
55
   unsigned char GlobalConfig;            // 0x01=Höhenregler aktiv,0x02=Kompass aktiv, 0x04=GPS aktiv, 0x08=Heading Hold aktiv
63
   unsigned char Hoehe_MinGas;            // Wert : 0-100
56
   unsigned char Hoehe_MinGas;            // Wert : 0-100
64
   unsigned char Luftdruck_D;             // Wert : 0-250
57
   unsigned char Luftdruck_D;             // Wert : 0-250