Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1702 | - | 1 | |
2 | #define on 1 |
||
3 | #define off 0 |
||
4 | |||
5 | // Versio number, incrementing this will erase/upload factory settings. |
||
6 | // Only devs should increment this |
||
7 | #define VER 74 |
||
8 | |||
9 | // EEPROM Stepping, be careful not to overstep. |
||
10 | // We reserved floats for just to be sure if some values needs to be |
||
11 | // changed in future. |
||
12 | // byte = 1 |
||
13 | // int = 4 |
||
14 | // float = 8 |
||
15 | |||
16 | // Panel 8bit REGISTER with BIT positions |
||
17 | // panA_REG Byte has: |
||
18 | #define Cen_BIT 0 |
||
19 | #define Pit_BIT 1 |
||
20 | #define Rol_BIT 2 |
||
21 | #define BatA_BIT 3 |
||
22 | #define BatB_BIT 4 //(!Not implemented) |
||
23 | #define GPSats_BIT 5 |
||
24 | #define GPL_BIT 6 |
||
25 | #define GPS_BIT 7 |
||
26 | |||
27 | // panB_REG Byte has: |
||
28 | #define Rose_BIT 0 |
||
29 | #define Head_BIT 1 |
||
30 | #define MavB_BIT 2 |
||
31 | #define HDir_BIT 3 |
||
32 | #define HDis_BIT 4 |
||
33 | #define WDir_BIT 5 //(!Not implemented) |
||
34 | #define WDis_BIT 6 //(!Not implemented) |
||
35 | #define RSSI_BIT 7 //(!Not implemented) |
||
36 | |||
37 | // panC_REG Byte has: |
||
38 | #define CurA_BIT 0 //(!Not implemented) |
||
39 | #define CurB_BIT 1 //(!Not implemented) |
||
40 | #define Alt_BIT 2 |
||
41 | #define Vel_BIT 3 |
||
42 | #define Thr_BIT 4 |
||
43 | #define FMod_BIT 5 |
||
44 | #define Hor_BIT 6 |
||
45 | //#define XXC_BIT 7 //Free |
||
46 | |||
47 | |||
48 | /* *********************************************** */ |
||
49 | // EEPROM Storage addresses |
||
50 | |||
51 | // First of 8 panels |
||
52 | #define panCenter_en_ADDR 0 |
||
53 | #define panCenter_x_ADDR 2 |
||
54 | #define panCenter_y_ADDR 4 |
||
55 | #define panPitch_en_ADDR 6 |
||
56 | #define panPitch_x_ADDR 8 |
||
57 | #define panPitch_y_ADDR 10 |
||
58 | #define panRoll_en_ADDR 12 |
||
59 | #define panRoll_x_ADDR 14 |
||
60 | #define panRoll_y_ADDR 16 |
||
61 | #define panBatt_A_en_ADDR 18 |
||
62 | #define panBatt_A_x_ADDR 20 |
||
63 | #define panBatt_A_y_ADDR 22 |
||
64 | #define panBatt_B_en_ADDR 24 |
||
65 | #define panBatt_B_x_ADDR 26 |
||
66 | #define panBatt_B_y_ADDR 28 |
||
67 | #define panGPSats_en_ADDR 30 |
||
68 | #define panGPSats_x_ADDR 32 |
||
69 | #define panGPSats_y_ADDR 34 |
||
70 | #define panGPL_en_ADDR 36 |
||
71 | #define panGPL_x_ADDR 38 |
||
72 | #define panGPL_y_ADDR 40 |
||
73 | #define panGPS_en_ADDR 42 |
||
74 | #define panGPS_x_ADDR 44 |
||
75 | #define panGPS_y_ADDR 46 |
||
76 | |||
77 | // Second set of 8 panels |
||
78 | #define panRose_en_ADDR 48 |
||
79 | #define panRose_x_ADDR 50 |
||
80 | #define panRose_y_ADDR 52 |
||
81 | #define panHeading_en_ADDR 54 |
||
82 | #define panHeading_x_ADDR 56 |
||
83 | #define panHeading_y_ADDR 58 |
||
84 | #define panMavBeat_en_ADDR 60 |
||
85 | #define panMavBeat_x_ADDR 62 |
||
86 | #define panMavBeat_y_ADDR 64 |
||
87 | #define panHomeDir_en_ADDR 66 |
||
88 | #define panHomeDir_x_ADDR 68 |
||
89 | #define panHomeDir_y_ADDR 70 |
||
90 | #define panHomeDis_en_ADDR 72 |
||
91 | #define panHomeDis_x_ADDR 74 |
||
92 | #define panHomeDis_y_ADDR 76 |
||
93 | #define panWPDir_en_ADDR 80 //(!Not implemented) |
||
94 | #define panWPDir_x_ADDR 82 // |
||
95 | #define panWPDir_y_ADDR 84 // |
||
96 | #define panWPDis_en_ADDR 86 //(!Not implemented) |
||
97 | #define panWPDis_x_ADDR 88 // |
||
98 | #define panWPDis_y_ADDR 90 // |
||
99 | #define panRSSI_en_ADDR 92 //(!Not implemented) |
||
100 | #define panRSSI_x_ADDR 94 // |
||
101 | #define panRSSI_y_ADDR 96 // |
||
102 | |||
103 | // Third set of 8 panels |
||
104 | #define panCurA_en_ADDR 98 //(!Not implemented) |
||
105 | #define panCurA_x_ADDR 100 // |
||
106 | #define panCurA_y_ADDR 102 // |
||
107 | #define panCurB_en_ADDR 104 //(!Not implemented) |
||
108 | #define panCurB_x_ADDR 106 // |
||
109 | #define panCurB_y_ADDR 108 // |
||
110 | #define panAlt_en_ADDR 110 |
||
111 | #define panAlt_x_ADDR 112 |
||
112 | #define panAlt_y_ADDR 114 |
||
113 | #define panVel_en_ADDR 116 |
||
114 | #define panVel_x_ADDR 118 |
||
115 | #define panVel_y_ADDR 120 |
||
116 | #define panThr_en_ADDR 122 |
||
117 | #define panThr_x_ADDR 124 |
||
118 | #define panThr_y_ADDR 126 |
||
119 | #define panFMod_en_ADDR 128 |
||
120 | #define panFMod_x_ADDR 130 |
||
121 | #define panFMod_y_ADDR 132 |
||
122 | #define panHorizon_en_ADDR 134 |
||
123 | #define panHorizon_x_ADDR 136 |
||
124 | #define panHorizon_y_ADDR 138 |
||
125 | |||
126 | #define CHK1 1000 |
||
127 | #define CHK2 1006 |
||
128 | |||
129 | #define EEPROM_MAX_ADDR 1024 // this is 328 chip |