Subversion Repositories Projects

Rev

Rev 761 | Rev 766 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 761 Rev 762
1
/****************************************************************************
1
/****************************************************************************
2
 *   Copyright (C) 2009-2010 by Claas Anders "CaScAdE" Rathje               *
2
 *   Copyright (C) 2009-2010 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   *
8
 *   the Free Software Foundation; either version 2 of the License.         *
8
 *   the Free Software Foundation; either version 2 of the License.         *
9
 *                                                                          *
9
 *                                                                          *
10
 *   This program is distributed in the hope that it will be useful,        *
10
 *   This program is distributed in the hope that it will be useful,        *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
13
 *   GNU General Public License for more details.                           *
13
 *   GNU General Public License for more details.                           *
14
 *                                                                          *
14
 *                                                                          *
15
 *   You should have received a copy of the GNU General Public License      *
15
 *   You should have received a copy of the GNU General Public License      *
16
 *   along with this program; if not, write to the                          *
16
 *   along with this program; if not, write to the                          *
17
 *   Free Software Foundation, Inc.,                                        *
17
 *   Free Software Foundation, Inc.,                                        *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
19
 ****************************************************************************/
19
 ****************************************************************************/
-
 
20
 
-
 
21
20100531-1530
-
 
22
  *fixed bug in stats when max-distance > 999m
20
 
23
 
21
20100501-1130
24
20100501-1130
22
  *distance to home now 4 digits for long distance flights
25
  *distance to home now 4 digits for long distance flights
23
  *max height and speed shown again in stats
26
  *max height and speed shown again in stats
24
  *clear full screen before stats shown so the art-horizon does not bug us
27
  *clear full screen before stats shown so the art-horizon does not bug us
25
 
28
 
26
20100419-0020
29
20100419-0020
27
  *fixed bug causing PPM-based display on/off to fail
30
  *fixed bug causing PPM-based display on/off to fail
28
  *fixed display of AGRESSiVA-horizion during motor run
31
  *fixed display of AGRESSiVA-horizion during motor run
29
 
32
 
30
20100412-2125
33
20100412-2125
31
  *added mph/ft (two new chars added, reflash characters if you need ft/mph)
34
  *added mph/ft (two new chars added, reflash characters if you need ft/mph)
32
  *AGRESSiVA-horizion now switchable via menu
35
  *AGRESSiVA-horizion now switchable via menu
33
  *reworked menu a bit
36
  *reworked menu a bit
34
  *switched from -O2 to -Os because of the added stuff
37
  *switched from -O2 to -Os because of the added stuff
35
 
38
 
36
20100403-0115
39
20100403-0115
37
  *RC-RSSI now shown if available (RC_Quality is still fallback, still needs FC patch)
40
  *RC-RSSI now shown if available (RC_Quality is still fallback, still needs FC patch)
38
  +AGRESSiVA-horizion to main trunk (NEW_ARTHORIZON 1 to test, needs new chars)
41
  +AGRESSiVA-horizion to main trunk (NEW_ARTHORIZON 1 to test, needs new chars)
39
  +chars needed for above mod to chars.mcm and chars.c
42
  +chars needed for above mod to chars.mcm and chars.c
40
 
43
 
41
20100218-2330
44
20100218-2330
42
  *hopefully fixed the laggy osd data problem
45
  *hopefully fixed the laggy osd data problem
43
  -send_data_mk has been striked out to save space
46
  -send_data_mk has been striked out to save space
44
  @nc-mode should be small enough for bootloader again ( Program:   14986 bytes (91.5% Full) )
47
  @nc-mode should be small enough for bootloader again ( Program:   14986 bytes (91.5% Full) )
45
 
48
 
46
20100216-1430
49
20100216-1430
47
  *some menu stuff
50
  *some menu stuff
48
  *stats in nc_default do not disturb the bigvario anymore
51
  *stats in nc_default do not disturb the bigvario anymore
49
  *reduced code size from 16088 bytes (98.2% Full) 15436 bytes (94.2% Full)
52
  *reduced code size from 16088 bytes (98.2% Full) 15436 bytes (94.2% Full)
50
 
53
 
51
20100214-1700
54
20100214-1700
52
  +mah wasted per flight (still counts up after landing, but space gets tight)
55
  +mah wasted per flight (still counts up after landing, but space gets tight)
53
  *init phase from 2000ms to 3000ms
56
  *init phase from 2000ms to 3000ms
54
  *init only takes place after first "valid" UBat is received (<4V should case the Mega to reset anyways)
57
  *init only takes place after first "valid" UBat is received (<4V should case the Mega to reset anyways)
55
 
58
 
56
20100212-2310
59
20100212-2310
57
  *adapted MK-datastructs to NC 0.18c
60
  *adapted MK-datastructs to NC 0.18c
58
  *added choice for current display measured by FC
61
  *added choice for current display measured by FC
59
 
62
 
60
20091109-1100
63
20091109-1100
61
  +fc-only mode by Josef "jopl" Plasil (MK3Mag on FC and no NC)
64
  +fc-only mode by Josef "jopl" Plasil (MK3Mag on FC and no NC)
62
  *usart1 routine to filter out unwanted datasets (also big thanks to jopl)
65
  *usart1 routine to filter out unwanted datasets (also big thanks to jopl)
63
 
66
 
64
20091102-2205
67
20091102-2205
65
  +nc/fc software version display in bootup
68
  +nc/fc software version display in bootup
66
  *changed checkbytes because of previously removed EEPROM data
69
  *changed checkbytes because of previously removed EEPROM data
67
 
70
 
68
20091030-2222
71
20091030-2222
69
	*synced NaviStruct to NC Code v0.17e
72
	*synced NaviStruct to NC Code v0.17e
70
	(since nothing of the new stuff is used right now, older NC version will still work)
73
	(since nothing of the new stuff is used right now, older NC version will still work)
71
 
74
 
72
20090714-2100
75
20090714-2100
73
	*fixed the flags (hopefully) for C-Strom and stuff
76
	*fixed the flags (hopefully) for C-Strom and stuff
74
 
77
 
75
20090706-2000
78
20090706-2000
76
    *hopefully fixed the new 10th number showing functions
79
    *hopefully fixed the new 10th number showing functions
77
    +support for GPS height instead of Baro
80
    +support for GPS height instead of Baro
78
 
81
 
79
20090703-0005
82
20090703-0005
80
    *write-number-functions changed, using itoa now, saves space, should be faster
83
    *write-number-functions changed, using itoa now, saves space, should be faster
81
    *inline added for basic max7456-spi_send because saves procedure call (^= time)
84
    *inline added for basic max7456-spi_send because saves procedure call (^= time)
82
 
85
 
83
20090627-1415
86
20090627-1415
84
	*ALL characters now in Progmem, from now on there will be only ONE char-file!
87
	*ALL characters now in Progmem, from now on there will be only ONE char-file!
85
 
88
 
86
20090612-2100
89
20090612-2100
87
    *spi transfer now struct driven (needs C-Strom 20090612-2100 now!!!)
90
    *spi transfer now struct driven (needs C-Strom 20090612-2100 now!!!)
88
    *lesser spi update rate (caused problems on some strom-slaves)
91
    *lesser spi update rate (caused problems on some strom-slaves)
89
    *voltage gets transfered via spi as well
92
    *voltage gets transfered via spi as well
90
    *menu to switch display of 2nd voltage measured by C-Strom on and off
93
    *menu to switch display of 2nd voltage measured by C-Strom on and off
91
 
94
 
92
20090604-1350
95
20090604-1350
93
	*bugfix for stats
96
	*bugfix for stats
94
 
97
 
95
20090604-1330
98
20090604-1330
96
	*possible to choose between different osd-layouts (via menu)
99
	*possible to choose between different osd-layouts (via menu)
97
 
100
 
98
20090604-0700
101
20090604-0700
99
	+(shaddi)osd_ncmode_minimal for less symbols during FPV
102
	+(shaddi)osd_ncmode_minimal for less symbols during FPV
100
 
103
 
101
20090601-2233
104
20090601-2233
102
	*(woggle) changed timer init an interupt to be more precise
105
	*(woggle) changed timer init an interupt to be more precise
103
	*(woggle) remove all warning during compile
106
	*(woggle) remove all warning during compile
104
	*(woggle) simplify draw_big_variometer
107
	*(woggle) simplify draw_big_variometer
105
	*(woggle) put compass rose to PROGMEM
108
	*(woggle) put compass rose to PROGMEM
106
	*(woggle) put directions array to PROGMEM
109
	*(woggle) put directions array to PROGMEM
107
 
110
 
108
20090525-2305
111
20090525-2305
109
	+HUD on/off via RC (connect to PPM, according to manual) testing stuff
112
	+HUD on/off via RC (connect to PPM, according to manual) testing stuff
110
 
113
 
111
20090523-1150
114
20090523-1150
112
	+pal/ntsc changable in menu (applied immedeately!)
115
	+pal/ntsc changable in menu (applied immedeately!)
113
 
116
 
114
20090519-2245
117
20090519-2245
115
    *mah corrected
118
    *mah corrected
116
    +config gets saved now (menu item!)
119
    +config gets saved now (menu item!)
117
    *source moved a bit
120
    *source moved a bit
118
 
121
 
119
20090519-0115
122
20090519-0115
120
    +mah currently wasted
123
    +mah currently wasted
121
    *some small changes
124
    *some small changes
122
 
125
 
123
20090517-2345
126
20090517-2345
124
	*modded the real alpha stuff i have been talking about below
127
	*modded the real alpha stuff i have been talking about below
125
 
128
 
126
20090516-2345
129
20090516-2345
127
	+some really testing stuff 'bout current measurement, more to come
130
	+some really testing stuff 'bout current measurement, more to come
128
 
131
 
129
20090513-2350
132
20090513-2350
130
	*cellnumber autoconfig modified, offset set to 1,5V
133
	*cellnumber autoconfig modified, offset set to 1,5V
131
	*copy paste nick/roll error fixed
134
	*copy paste nick/roll error fixed
132
	*clean after build in dist.sh
135
	*clean after build in dist.sh
133
	+a little shellscript to auto-build the files (testing)
136
	+a little shellscript to auto-build the files (testing)
134
	*osd-layouts in seperate files so including own layouts should get easier
137
	*osd-layouts in seperate files so including own layouts should get easier
135
	+build date is displayed during init to know which version you are runing
138
	+build date is displayed during init to know which version you are runing
136
 
139
 
137
20090513-1040
140
20090513-1040
138
    *some code movement
141
    *some code movement
139
    +artificial horizon for FC-ONLY mode
142
    +artificial horizon for FC-ONLY mode
140
 
143
 
141
20090512-2100
144
20090512-2100
142
    +some FCONLY basics (set FCONLY to 1 in main.h to use it)
145
    +some FCONLY basics (set FCONLY to 1 in main.h to use it)
143
 
146
 
144
20090511-2345
147
20090511-2345
145
    *battery voltages now calculated according to CELL_VOLT_MIN CELL_VOLT_MAX and CELL_NUM
148
    *battery voltages now calculated according to CELL_VOLT_MIN CELL_VOLT_MAX and CELL_NUM
146
    *CELL_NUM -1 causes a rough auto detection of cell number
149
    *CELL_NUM -1 causes a rough auto detection of cell number
147
    -UBAT_WRN and UBAT_MAX are now deprecated
150
    -UBAT_WRN and UBAT_MAX are now deprecated
148
 
151
 
149
20090427-2315
152
20090427-2315
150
    +write_gps_pos(...) (needs to be tested)
153
    +write_gps_pos(...) (needs to be tested)
151
    +gps position is shown in stats screen for testing purpose
154
    +gps position is shown in stats screen for testing purpose
152
 
155
 
153
20090427-2131
156
20090427-2131
154
    *stats are only collected while engines running (shaddi)
157
    *stats are only collected while engines running (shaddi)
155
 
158
 
156
20090427-2102
159
20090427-2102
157
    *fixed maximum distance in stats (shaddi)
160
    *fixed maximum distance in stats (shaddi)
158
 
161
 
159
20090427-2050
162
20090427-2050
160
    *clear() now faster
163
    *clear() now faster
161
    *fixed calculation of max speed in stats (shaddi)
164
    *fixed calculation of max speed in stats (shaddi)
162
    *littel typo in artificial horizon (thx joko)
165
    *littel typo in artificial horizon (thx joko)
163
    *stats are only shown AFTER flight (more specific, after motors had been on at least once)
166
    *stats are only shown AFTER flight (more specific, after motors had been on at least once)
164
    +indication icon for serial link (requires new character 198)
167
    +indication icon for serial link (requires new character 198)
165
    +indication icon for manual controll (stick > stick threshold)
168
    +indication icon for manual controll (stick > stick threshold)
166
    (Character set 192 needs to be reflashed since new icon is in it)
169
    (Character set 192 needs to be reflashed since new icon is in it)
167
 
170
 
168
20090420-0205
171
20090420-0205
169
    *reset-bug fixed
172
    *reset-bug fixed
170
    *moved code a bit
173
    *moved code a bit
171
 
174
 
172
20090419-2145
175
20090419-2145
173
	*reset-bug workaround in usart1.c: usart1_DisableTXD and usart1_EnableTXD
176
	*reset-bug workaround in usart1.c: usart1_DisableTXD and usart1_EnableTXD
174
 
177
 
175
20090419-1900
178
20090419-1900
176
	*fixed bug in heading-fine conv for bearing to home
179
	*fixed bug in heading-fine conv for bearing to home
177
 
180
 
178
20090419-1245
181
20090419-1245
179
	*compass characters bigger
182
	*compass characters bigger
180
	*battery position
183
	*battery position
181
	+voltage-symbol to battery-voltage
184
	+voltage-symbol to battery-voltage
182
	(Character Set 208 needs to be reflashed since compass chars are in it)
185
	(Character Set 208 needs to be reflashed since compass chars are in it)
183
 
186
 
184
20090418-2015
187
20090418-2015
185
	*fixed bug in Character Set 128 (reflash it if you already flashed it!)
188
	*fixed bug in Character Set 128 (reflash it if you already flashed it!)
186
	+another set of vario chars
189
	+another set of vario chars
187
	*changed vario to use new characters
190
	*changed vario to use new characters
188
	*moved vario/home-bearing positions
191
	*moved vario/home-bearing positions
189
	*big vario now enabled via menu or BIGVARIO
192
	*big vario now enabled via menu or BIGVARIO
190
	(Character Set 112 needs to be flashed)
193
	(Character Set 112 needs to be flashed)
191
 
194
 
192
20090418-1235
195
20090418-1235
193
	+big vario for testing purpose
196
	+big vario for testing purpose
194
	(Character Set 192 needs to be flashed)
197
	(Character Set 192 needs to be flashed)
195
 
198
 
196
20090418-0100
199
20090418-0100
197
	*variometer uses more steps (9 instead of 5)
200
	*variometer uses more steps (9 instead of 5)
198
	*home-arrow is now home-clock using more steps (22,5° resolution)
201
	*home-arrow is now home-clock using more steps (22,5° resolution)
199
	+visual battery-gauge according to difference between UBAT_WRN and UBAT_MAX
202
	+visual battery-gauge according to difference between UBAT_WRN and UBAT_MAX
200
 
203
 
201
20090417-1115
204
20090417-1115
202
	*changed calculation of km/h (thx wowie)
205
	*changed calculation of km/h (thx wowie)
203
	*added JochenK_(joko)'s characters
206
	*added JochenK_(joko)'s characters
204
	(Character-Sets 128, 136, 144, 152, 160, 168, 176 and 184 need to be flashed!)
207
	(Character-Sets 128, 136, 144, 152, 160, 168, 176 and 184 need to be flashed!)
205
 
208
 
206
20090408-1245 (shaddi)
209
20090408-1245 (shaddi)
207
	*fixed distance towards home
210
	*fixed distance towards home
208
 
211
 
209
20090408-0035
212
20090408-0035
210
	*rewrote number->display functions
213
	*rewrote number->display functions
211
	*fixed height bug (uint vs int)
214
	*fixed height bug (uint vs int)
212
 
215
 
213
20090407-2100
216
20090407-2100
214
    +added request of OSD data, disrequest of debug data and uptime reset to menu
217
    +added request of OSD data, disrequest of debug data and uptime reset to menu
215
    -removed the uptime-reset binding from S2
218
    -removed the uptime-reset binding from S2
216
    +pgm space for some strings to save _normal_ data space
219
    +pgm space for some strings to save _normal_ data space
217
    *some code movement
220
    *some code movement
218
 
221
 
219
20090406-0130
222
20090406-0130
220
	*MK-Datastruct updated to work with NaviCtrl 0.15c firmware
223
	*MK-Datastruct updated to work with NaviCtrl 0.15c firmware
221
	*changed flags from NO* to invers versions
224
	*changed flags from NO* to invers versions
222
	*enhanced the menu a bit
225
	*enhanced the menu a bit
223
	-artificial horizon at bootup, the menu is cooler imho
226
	-artificial horizon at bootup, the menu is cooler imho
224
 
227
 
225
20090405-0207
228
20090405-0207
226
	+NOOSD as requested
229
	+NOOSD as requested
227
	*height now corrected (thx lephisto) and displayed as .x up to 10m
230
	*height now corrected (thx lephisto) and displayed as .x up to 10m
228
 
231
 
229
20090402-0106
232
20090402-0106
230
	+ disabling the txd pin while not using it so it won't interfere with KopterTool usage (thx joko)
233
	+ disabling the txd pin while not using it so it won't interfere with KopterTool usage (thx joko)
231
	+ if no data has been received for over 2sec we re-request it
234
	+ if no data has been received for over 2sec we re-request it
232
	* tried source organisation a bit
235
	* tried source organisation a bit
233
 
236
 
234
20090401-1741 (shaddi)
237
20090401-1741 (shaddi)
235
	+ More precise Veriometer. Uses more more characters to show the speed of the movement
238
	+ More precise Veriometer. Uses more more characters to show the speed of the movement
236
	  (Character-Set 232 needs to be flashed!)
239
	  (Character-Set 232 needs to be flashed!)
237
 
240
 
238
20090331-1549
241
20090331-1549
239
	+ simple config menu during runtime, press S1 to jump in, S2 to cyle and S1 to accept choice
242
	+ simple config menu during runtime, press S1 to jump in, S2 to cyle and S1 to accept choice
240
	- S1 no longer requests the NC data
243
	- S1 no longer requests the NC data
241
 
244
 
242
20090331-1305
245
20090331-1305
243
	+ added more statistics
246
	+ added more statistics
244
	* corrected S1/S2 mapping (d'oh)
247
	* corrected S1/S2 mapping (d'oh)
245
	+ started simple mode controll, press S2 during bootup toggles artificial horizon
248
	+ started simple mode controll, press S2 during bootup toggles artificial horizon
246
 
249
 
247
20090329-1452
250
20090329-1452
248
	* fixed bearing to home
251
	* fixed bearing to home
249
	+ added flight stats (shown while engines off)
252
	+ added flight stats (shown while engines off)
250
	+ sat icon should indicate PH/CH/Free now
253
	+ sat icon should indicate PH/CH/Free now
251
	+ you need to flash characters 224-231 if you were using previous versions
254
	+ you need to flash characters 224-231 if you were using previous versions
252
 
255
 
253
20090327-2140
256
20090327-2140
254
	* fixed km/h (was cm/s)
257
	* fixed km/h (was cm/s)
255
	* fixed height m (was dm)
258
	* fixed height m (was dm)
256
	* modified incoming data speed to 100ms (was 200ms)
259
	* modified incoming data speed to 100ms (was 200ms)
257
 
260
 
258
20090326-2031
261
20090326-2031
259
	+ first binary release
262
	+ first binary release