Subversion Repositories FlightCtrl

Rev

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

Rev 2518 Rev 2594
Line 66... Line 66...
66
 unsigned char Config;
66
 unsigned char Config;
67
};
67
};
68
extern struct str_ExternControl   ExternControl;
68
extern struct str_ExternControl   ExternControl;
69
*/
69
*/
Line 70... Line -...
70
 
-
 
71
// defines for ExternalControl.Config
70
 
72
#define EC_VALID                0x01  // only valid if this is 1
71
#define EC_VALID                        0x01 // only valid if this is 1
-
 
72
#define EC_GAS_ADD                      0x02 // if 1 -> use the GAS Value not as MAX
-
 
73
#define EC_USE_SWITCH           0x20 // if 1 -> use the Switches for further control
73
#define EC_GAS_ADD              0x02  // if 1 -> use the GAS Value not as MAX
74
#define EC_IGNORE_RC_STICK      0x40 // direct control (do nor add to RC-Stick)
-
 
75
#define EC_IGNORE_RC            0x80 // if 1 -> for Flying without RC-Control 
-
 
76
 
-
 
77
// defines for ExternalControl.Switches -> control GPS Modes etc. if(Config & EC_USE_SWITCH)
-
 
78
#define EC2_PH                          0x01 // GPS-Mode: PH
-
 
79
#define EC2_CH                          0x02 // GPS-Mode: CH
-
 
80
#define EC2_CAREFREE            0x10 // 
-
 
81
#define EC2_ALTITUDE            0x20 // 
-
 
82
#define EC2_AUTOSTART           0x40 // 
Line 74... Line 83...
74
#define EC_IGNORE_RC    0x80  // if 1 -> for Flying without RC-Control 
83
#define EC2_AUTOLAND            0x80 // 
75
 
84
 
76
struct str_ExternControl
85
struct str_ExternControl
77
{
86
{
78
 signed char   Nick;
87
 signed char Nick;
79
 signed char   Roll;
88
 signed char Roll;
80
 signed char   Gier;
89
 signed char Gier;
81
 signed char   Gas;
90
 signed char Gas;
-
 
91
 unsigned char Frame; // will return a confirm frame with this value
-
 
92
 unsigned char Config;
82
 unsigned char Frame;   // will return a confirm frame with this value
93
 unsigned char Switches;
83
 unsigned char Config;
94
 unsigned char Free1; // these two don't need capacity in the ASCII data string
84
 unsigned char free;
95
 unsigned char Free2;
85
};
96
};
Line 86... Line 97...
86
extern struct str_ExternControl ExternalControl;
97
extern struct str_ExternControl ExternalControl;