Rev 2598 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2598 | Rev 2601 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /**************************************************************************** |
1 | /**************************************************************************** |
2 | * Copyright (C) 2009-2017 by Claas Anders "CaScAdE" Rathje * |
2 | * Copyright (C) 2009-2018 by Claas Anders "CaScAdE" Rathje * |
3 | * admiralcascade@gmail.com * |
3 | * admiralcascade@gmail.com * |
4 | * Project-URL: http://www.mylifesucks.de/oss/c-osd/ * |
4 | * Project-URL: http://www.mylifesucks.de/oss/c-osd/ * |
5 | * * |
5 | * * |
6 | * This program is free software; you can redistribute it and/or modify * |
6 | * This program is free software; you can redistribute it and/or modify * |
7 | * it under the terms of the GNU General Public License as published by * |
7 | * it under the terms of the GNU General Public License as published by * |
Line 83... | Line 83... | ||
83 | #define SIMULATION 0x03 |
83 | #define SIMULATION 0x03 |
Line 84... | Line 84... | ||
84 | 84 | ||
85 | /* |
85 | /* |
86 | * NaviCtrl OSD Structs |
86 | * NaviCtrl OSD Structs |
87 | * portions taken and adapted from |
87 | * portions taken and adapted from |
88 | * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=/tags/V2.18a/uart1.h |
88 | * http://svn.mikrokopter.de/filedetails.php?repname=NaviCtrl&path=/tags/V2.20h/uart1.h |
89 | */ |
89 | */ |
90 | typedef struct { |
90 | typedef struct { |
91 | u16 Distance; // distance to target in dm |
91 | u16 Distance; // distance to target in dm |
92 | s16 Bearing; // course to target in deg |
92 | s16 Bearing; // course to target in deg |
Line 132... | Line 132... | ||
132 | u16 Current; // actual current in 0.1A steps |
132 | u16 Current; // actual current in 0.1A steps |
133 | u16 UsedCapacity; // used capacity in mAh |
133 | u16 UsedCapacity; // used capacity in mAh |
134 | u8 reserve1; // to fit into 84 bytes (must be divisible by 3) |
134 | u8 reserve1; // to fit into 84 bytes (must be divisible by 3) |
135 | u8 reserve2; // to fit into 84 bytes (must be divisible by 3) |
135 | u8 reserve2; // to fit into 84 bytes (must be divisible by 3) |
136 | } __attribute__((packed)) NaviData_t; |
136 | } __attribute__((packed)) NaviData_t; |
- | 137 | extern NaviData_t NaviData; |
|
Line 137... | Line 138... | ||
137 | 138 | ||
138 | /* |
139 | /* |
139 | * NaviCtrl & FCFlags Flags |
140 | * NaviCtrl & FCFlags Flags |
140 | * portions taken and adapted from |
141 | * portions taken and adapted from |
Line 198... | Line 199... | ||
198 | #define FC_ERROR1_RES3 0x80 |
199 | #define FC_ERROR1_RES3 0x80 |
Line 199... | Line 200... | ||
199 | 200 | ||
200 | /* |
201 | /* |
201 | * MikroKopter config struct |
202 | * MikroKopter config struct |
202 | * portions taken and adapted from |
203 | * portions taken and adapted from |
203 | * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V2.16a/eeprom.h |
204 | * http://svn.mikrokopter.de/filedetails.php?repname=FlightCtrl&path=/tags/V2.20c/eeprom.h |
Line 204... | Line 205... | ||
204 | */ |
205 | */ |
205 | 206 | ||
206 | #define EEPARAM_REVISION 110 // !!!Update NC also!!! is count up, if paramater stucture has changed (compatibility) |
207 | #define EEPARAM_REVISION 113 // -> InsertDefaultParameters() |
Line 207... | Line 208... | ||
207 | #define EEMIXER_REVISION 1 // is count up, if mixer stucture has changed (compatibility) |
208 | #define EEMIXER_REVISION 1 // is count up, if mixer stucture has changed (compatibility) |
208 | #define EE_BACKWARD_COMP 1 // change if the eepropm parameters are not backwards compatible |
209 | #define EE_BACKWARD_COMP 1 // count up if the eepropm parameters are not backwards compatible |
Line 331... | Line 332... | ||
331 | unsigned char LandingPulse; |
332 | unsigned char LandingPulse; |
332 | unsigned char SingleWpControlChannel; |
333 | unsigned char SingleWpControlChannel; |
333 | unsigned char MenuKeyChannel; |
334 | unsigned char MenuKeyChannel; |
334 | unsigned char CamCtrlModeChannel; |
335 | unsigned char CamCtrlModeChannel; |
335 | unsigned char CamCtrlZoomChannel; |
336 | unsigned char CamCtrlZoomChannel; |
- | 337 | unsigned char FailsSafeAltitude; |
|
- | 338 | unsigned char GimbalYawChannel; |
|
- | 339 | unsigned char GimbalOut1Channel; |
|
- | 340 | unsigned char GimbalOut2Channel; |
|
336 | unsigned char reserved[32]; // for later use |
341 | unsigned char reserved[28]; // for later use |
337 | //------------------------------------------------ |
342 | //------------------------------------------------ |
338 | unsigned char BitConfig; // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
343 | unsigned char BitConfig; // (war Loop-Cfg) Bitcodiert: 0x01=oben, 0x02=unten, 0x04=links, 0x08=rechts / wird getrennt behandelt |
339 | unsigned char ServoCompInvert; // // 0x01 = Nick, 0x02 = Roll, 0x04 = relative moving // WICHTIG!!! am Ende lassen |
344 | unsigned char ServoCompInvert; // // 0x01 = Nick, 0x02 = Roll, 0x04 = relative moving // WICHTIG!!! am Ende lassen |
340 | unsigned char ExtraConfig; // bitcodiert |
345 | unsigned char ExtraConfig; // bitcodiert |
341 | unsigned char GlobalConfig3; // bitcodiert |
346 | unsigned char GlobalConfig3; // bitcodiert |