Subversion Repositories NaviCtrl

Rev

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

Rev 682 Rev 689
Line 83... Line 83...
83
        u8      Frame;
83
        u8      Frame;
84
        u8      Config;
84
        u8      Config;
85
} __attribute__((packed)) ExternControl_t;
85
} __attribute__((packed)) ExternControl_t;
86
*/
86
*/
Line 87... Line -...
87
 
-
 
88
// defines for ExternalControl.Config
87
 
89
#define EC_VALID                0x01  // only valid if this is 1
88
#define EC_VALID                        0x01 // only valid if this is 1
-
 
89
#define EC_GAS_ADD                      0x02 // if 1 -> use the GAS Value not as MAX
-
 
90
#define EC_USE_SWITCH           0x20 // if 1 -> use the Switches for further control
90
#define EC_GAS_ADD              0x02  // if 1 -> use the GAS Value not as MAX
91
#define EC_IGNORE_RC_STICK      0x40 // direct control (do nor add to RC-Stick)
-
 
92
#define EC_IGNORE_RC_LOST       0x80 // if 1 -> for Flying without RC-Control 
-
 
93
 
-
 
94
// defines for ExternalControl.Switches -> control GPS Modes etc. if(Config & EC_USE_SWITCH)
-
 
95
#define EC2_PH                          0x01 // GPS-Mode: PH
-
 
96
#define EC2_CH                          0x02 // GPS-Mode: CH
-
 
97
#define EC2_CAREFREE            0x10 // 
-
 
98
#define EC2_ALTITUDE            0x20 // 
-
 
99
#define EC2_AUTOSTART           0x40 // 
Line 91... Line 100...
91
#define EC_IGNORE_RC    0x80  // if 1 -> for Flying without RC-Control 
100
#define EC2_AUTOLAND            0x80 // 
92
 
101
 
93
typedef struct
102
typedef struct
94
{
103
{
95
 signed char   Nick;
104
 signed char Nick;
96
 signed char   Roll;
105
 signed char Roll;
97
 signed char   Gier;
106
 signed char Gier;
98
 signed char   Gas;
107
 signed char Gas;
-
 
108
 unsigned char Frame; // will return a confirm frame with this value
-
 
109
 unsigned char Config;
99
 unsigned char Frame;   // will return a confirm frame with this value
110
 unsigned char Switches;
100
 unsigned char Config;
111
 unsigned char Free1; // these two don't need capacity in the ASCII data string
101
 unsigned char free;
-
 
102
} __attribute__((packed)) ExternControl_t;
112
 unsigned char Free2;
-
 
113
} __attribute__((packed)) ExternControl_t;
-
 
114
extern ExternControl_t ExternControl;
-
 
115
extern u8 NewExternalControlFrame; // flag that sends the Frame to FC
-
 
116
 
-
 
117
#define SERIAL_POTI_START 17
-
 
118
#define WP_EVENT_PPM_IN   29
-
 
119
#define PPM_IN_OFF        30
-
 
120
#define PPM_IN_MAX        31
-
 
121
#define PPM_IN_MID        32
-
 
122
typedef struct
-
 
123
{
-
 
124
 signed char   Ch[12];
-
 
125
} __attribute__((packed)) SerialChannel_t;
Line 103... Line 126...
103
 
126
extern SerialChannel_t SerialChannel;
104
extern ExternControl_t ExternControl;
127
extern u8 NewSerialChannelFrame; // flag that sends the Frame to FC
105
 
128
 
106
typedef struct
129
typedef struct