Rev 783 | Rev 833 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 783 | Rev 832 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #define u16 uint16_t |
29 | #define u16 uint16_t |
30 | #define s16 int16_t |
30 | #define s16 int16_t |
31 | #define u32 uint32_t |
31 | #define u32 uint32_t |
32 | #define s32 int32_t |
32 | #define s32 int32_t |
Line -... | Line 33... | ||
- | 33 | ||
- | 34 | /** |
|
- | 35 | * MikroKopter Slave-Addresses |
|
- | 36 | * portions taken and adapted from |
|
- | 37 | * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=/tags/V0.22a/mkprotocol.h |
|
- | 38 | */ |
|
- | 39 | #define ANY_ADDRESS 0 |
|
- | 40 | #define FC_ADDRESS 1 |
|
- | 41 | #define NC_ADDRESS 2 |
|
- | 42 | #define MK3MAG_ADDRESS 3 |
|
- | 43 | #define MKOSD_ADDRESS 4 |
|
- | 44 | #define BL_ADDRESS 5 |
|
- | 45 | ||
33 | 46 | ||
34 | /* |
47 | /* |
35 | * FC Debug Struct |
48 | * FC Debug Struct |
36 | * portions taken and adapted from |
49 | * portions taken and adapted from |
37 | * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V0.80d/uart.h |
50 | * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V0.80d/uart.h |
Line 68... | Line 81... | ||
68 | 81 | ||
69 | 82 | ||
70 | /* |
83 | /* |
71 | * NaviCtrl OSD Structs |
84 | * NaviCtrl OSD Structs |
72 | * portions taken and adapted from |
85 | * portions taken and adapted from |
73 | * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=/tags/V0.20c/uart1.h |
86 | * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=/tags/V0.22a/uart1.h |
74 | */ |
87 | */ |
75 | typedef struct { |
88 | typedef struct { |
76 | u16 Distance; // distance to target in dm |
89 | u16 Distance; // distance to target in dm |
Line 115... | Line 128... | ||
115 | #define NC_FLAG_CH 0x04 |
128 | #define NC_FLAG_CH 0x04 |
116 | #define NC_FLAG_RANGE_LIMIT 0x08 |
129 | #define NC_FLAG_RANGE_LIMIT 0x08 |
117 | #define NC_FLAG_NOSERIALLINK 0x10 |
130 | #define NC_FLAG_NOSERIALLINK 0x10 |
118 | #define NC_FLAG_TARGET_REACHED 0x20 |
131 | #define NC_FLAG_TARGET_REACHED 0x20 |
119 | #define NC_FLAG_MANUAL_CONTROL 0x40 |
132 | #define NC_FLAG_MANUAL_CONTROL 0x40 |
120 | #define NC_FLAG_8 0x80 |
133 | #define NC_FLAG_GPS_OK 0x80 |
Line 121... | Line 134... | ||
121 | 134 | ||
122 | /* |
135 | /* |
123 | * MikroKopter Flags |
136 | * MikroKopter Flags |
124 | * portions taken and adapted from |
137 | * portions taken and adapted from |
Line 128... | Line 141... | ||
128 | #define FCFLAG_FLY 0x02 |
141 | #define FCFLAG_FLY 0x02 |
129 | #define FCFLAG_CALIBRATE 0x04 |
142 | #define FCFLAG_CALIBRATE 0x04 |
130 | #define FCFLAG_START 0x08 |
143 | #define FCFLAG_START 0x08 |
131 | #define FCFLAG_NOTLANDUNG 0x10 |
144 | #define FCFLAG_NOTLANDUNG 0x10 |
132 | #define FCFLAG_LOWBAT 0x20 |
145 | #define FCFLAG_LOWBAT 0x20 |
133 | #define FCFLAG_SPI_RX_ERR 0x40 |
146 | #define FCFLAG_VARIO_TRIM_UP 0x40 |
134 | #define FCFLAG_I2CERR 0x80 |
147 | #define FCFLAG_VARIO_TRIM_DOWN 0x80 |
Line 135... | Line 148... | ||
135 | 148 | ||
136 | #define DEFEKT_G_NICK 0x01 |
149 | #define DEFEKT_G_NICK 0x01 |
137 | #define DEFEKT_G_ROLL 0x02 |
150 | #define DEFEKT_G_ROLL 0x02 |
138 | #define DEFEKT_G_GIER 0x04 |
151 | #define DEFEKT_G_GIER 0x04 |
Line 198... | Line 211... | ||
198 | unsigned char ServoRollComp; // Wert : 0-250 |
211 | unsigned char ServoRollComp; // Wert : 0-250 |
199 | unsigned char ServoRollMin; // Wert : 0-250 |
212 | unsigned char ServoRollMin; // Wert : 0-250 |
200 | unsigned char ServoRollMax; // Wert : 0-250 |
213 | unsigned char ServoRollMax; // Wert : 0-250 |
201 | //--- |
214 | //--- |
202 | unsigned char ServoNickRefresh; // Speed of the Servo |
215 | unsigned char ServoNickRefresh; // Speed of the Servo |
- | 216 | unsigned char ServoManualControlSpeed;// |
|
- | 217 | unsigned char CamOrientation; // |
|
203 | unsigned char Servo3; // Value or mapping of the Servo Output |
218 | unsigned char Servo3; // Value or mapping of the Servo Output |
204 | unsigned char Servo4; // Value or mapping of the Servo Output |
219 | unsigned char Servo4; // Value or mapping of the Servo Output |
205 | unsigned char Servo5; // Value or mapping of the Servo Output |
220 | unsigned char Servo5; // Value or mapping of the Servo Output |
206 | unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
221 | unsigned char LoopGasLimit; // Wert: 0-250 max. Gas während Looping |
207 | unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |
222 | unsigned char LoopThreshold; // Wert: 0-250 Schwelle für Stickausschlag |