Rev 2598 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1468 | - | 1 | /**************************************************************************** |
2601 | - | 2 | * Copyright (C) 2009-2018 by Claas Anders "CaScAdE" Rathje * |
321 | cascade | 3 | * admiralcascade@gmail.com * |
4 | * Project-URL: http://www.mylifesucks.de/oss/c-osd/ * |
||
5 | * * |
||
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 * |
||
8 | * the Free Software Foundation; either version 2 of the License. * |
||
9 | * * |
||
10 | * This program is distributed in the hope that it will be useful, * |
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||
13 | * GNU General Public License for more details. * |
||
14 | * * |
||
15 | * You should have received a copy of the GNU General Public License * |
||
16 | * along with this program; if not, write to the * |
||
17 | * Free Software Foundation, Inc., * |
||
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||
19 | ****************************************************************************/ |
||
2601 | - | 20 | |
21 | 20180509-1200 |
||
22 | *adapted structs to reflect FC/NC software V2.20c/V2.20h |
||
2041 | - | 23 | |
2598 | - | 24 | 20170511-1145 |
25 | *adapted structs to reflect FC/NC software V2.18a |
||
26 | |||
2569 | - | 27 | 20161212-0845 |
28 | *adapted structs to reflect FC/NC software V2.16a |
||
29 | |||
2225 | - | 30 | 20160302-0700 |
31 | *adapted structs to reflect FC/NC software V2.14a |
||
32 | |||
2217 | - | 33 | 20151026-0630 |
34 | *adapted structs to reflect FC/NC software V2.12a |
||
35 | |||
2099 | - | 36 | 20150427-2145 |
37 | *adapted structs to reflect FC/NC software V2.10a/b |
||
38 | |||
2075 | - | 39 | 20141015-2300 |
40 | *adapted structs to reflect FC/NC software V2.08a |
||
41 | *changed hanging to 2min wait in case of version missmatch |
||
42 | |||
2043 | - | 43 | 20140415-2130 |
44 | *adapted structs to reflect FC/NC software V2.06a |
||
45 | *added version check for FC/NC software |
||
46 | (OSD will hang at init in case version do not match) |
||
47 | |||
2041 | - | 48 | 20140317-1730 |
49 | *fixed battery-voltage >254 crash |
||
50 | |||
2039 | - | 51 | 20140313-2230 |
52 | *adapted structs to reflect FC/NC software V2.04a |
||
497 | cascade | 53 | |
2009 | - | 54 | 20130824-1115 |
55 | *fixed FC-only mode |
||
56 | |||
1992 | - | 57 | 20130622-2030 |
2000 | - | 58 | *adapted settings struct to FC software 0.90L |
59 | |||
60 | 20130622-2030 |
||
1992 | - | 61 | *adapted settings struct to FC software 0.90j |
62 | |||
1951 | - | 63 | 20130401-1216 |
64 | *fixed display of mAh from C-Strom |
||
65 | *fixed ppm crash due do underflow |
||
66 | |||
1866 | - | 67 | 20130218-2030 |
68 | +Source option to set the Aggr.Horizon indicator bars on the same |
||
69 | level as the horizon |
||
70 | |||
1801 | - | 71 | 20121127-2120 |
72 | +No FC communication define in config for usage with NC and no FC |
||
73 | *memcpy stuff instead of inplace buffer to unlock the buffer faster |
||
74 | +prepared the 3D Data stuff |
||
75 | |||
1773 | - | 76 | 20121105-1135 |
77 | *attemp to fix errors when building with GCC 4.7 |
||
78 | |||
1771 | - | 79 | 20121102-1245 |
80 | *small init fix for display modes |
||
81 | *small change in ppm handling |
||
82 | |||
1706 | - | 83 | 20120723-1900 |
84 | *expanded ampere wasted to 5digits in nc_mode_default |
||
85 | |||
1593 | - | 86 | 20120329-1324 |
87 | *corrected bug in stats which caused maximal current to be overwritten |
||
88 | |||
1591 | - | 89 | 20120328-1000 |
90 | *setting struct adapted to V0.88e |
||
91 | @caused wrong setting-name display |
||
92 | |||
1468 | - | 93 | 20120114-2235 |
94 | *setting struct adapted to V0.86d |
||
95 | @caused wrong setting-name display |
||
96 | |||
1281 | - | 97 | 20110921-1425 |
98 | +logo support |
||
99 | @there is a logo in the new character definitions |
||
100 | @to see it you will have to reflash characters |
||
101 | @insert your own logo if you like to, see osd-logo.png as example |
||
102 | @and use http://www.mylifesucks.de/tools/max7456/ |
||
103 | |||
1197 | - | 104 | 20110825-1000 |
105 | *initial testing stuff for -45° rotated flights (X instead of +) |
||
106 | *some minor code changes |
||
107 | |||
955 | - | 108 | 20110605-1045 |
109 | *possible fix of the previous ugly RSSI hack |
||
110 | |||
954 | - | 111 | 20110604-1615 |
112 | +really ugly (untested) hack to get ACT DSL RSSI information in FC-Only mode |
||
113 | |||
952 | - | 114 | 20110523-1635 |
115 | *fixed statistics-accumulation in minimal-screen. |
||
116 | |||
942 | - | 117 | 20110331-1805 |
118 | +added possibility to blank the display with SJ1 (SJ1 closed = no HUD) |
||
119 | |||
941 | - | 120 | 20110331-1200 |
121 | *small adaption to NC 0.24b and FC 0.84a |
||
122 | *added CF-indicator icon |
||
123 | @To see the correct CF-indicator you will have to flash the characters! |
||
124 | |||
932 | - | 125 | 20110307-1845 |
126 | *added debug output option for MAX7456 emulation |
||
127 | *moved horizon one line higher when displaying GPS-Coordinates |
||
128 | *fixed small glitch in menu |
||
129 | |||
902 | - | 130 | 20110202-1323 |
131 | *added big speed indicator (credits to: uwerner) |
||
132 | *added possibility to show GPS-Coordinates during flight |
||
133 | *added more _brackets_ |
||
134 | @To see correct corner-chars when using scope, flash the character-set |
||
135 | included in this release! |
||
136 | |||
837 | - | 137 | 20101218-2030 |
138 | *added _brackets_ to mark a scope when using a second camera |
||
139 | (might help to remember what the second camera is filming) |
||
140 | @To see real corners, flash the new character-set included in this release! |
||
141 | |||
835 | - | 142 | 20101116-2110 |
143 | *increased buffer so the new config struct really fits (fixes garbage after setting name) |
||
144 | *fixed GPS-blink on startup |
||
145 | *re-enable some ascii-char mappings (some people do have underscores in their setting-names) |
||
146 | |||
833 | - | 147 | 20101115-2115 |
148 | *inserted missing new value in config-struct. should fix setting-name. |
||
149 | |||
832 | - | 150 | 20101115-0800 |
151 | *updated structs and flags to fit FC 0.80a && NC 0.20a |
||
152 | *sat-icon will blink when not enough sats are found (nc_mode_default) |
||
826 | - | 153 | |
154 | 20101008-0945 |
||
155 | *fixed EPi-Strom voltage-display when using FC-Ampere |
||
156 | |||
157 | 20101007-1555 |
||
158 | *added passive option: OSD will NOT request data after bootup |
||
159 | |||
809 | - | 160 | 20100908-2335 |
826 | - | 161 | *fixed height-offset causing different height values in OSD compared to MK-Tool when using baro-height (thx Neo360) |
809 | - | 162 | |
800 | - | 163 | 20100822-2300 |
826 | - | 164 | *removed debug-leftover in ppm.c (thx OktoMac) |
165 | *made number display-routines more stable when big numbers occur |
||
800 | - | 166 | |
787 | - | 167 | 20100803-0355 |
826 | - | 168 | *removed constantly requests for the NC Uart in NC mode which |
169 | caused problems when using OSD/MKTool at the same time |
||
787 | - | 170 | |
783 | - | 171 | 20100730-1345 |
826 | - | 172 | *added current setting display |
173 | *updated structs for FC 0.80 and NC 0.20 (old version will still work, just cosmetics) |
||
174 | *battery warn level now _can_ be taken from the FC-Settings |
||
175 | *corrected some defines so FC stuff is only in FC Builds and NC stuff only in NC builds |
||
783 | - | 176 | |
772 | - | 177 | 20100701-1745 |
826 | - | 178 | *hopefully fixed altimeter-stats |
179 | *some basic antenna tracking insertion for others to test |
||
766 | - | 180 | |
767 | - | 181 | 20100613-2255 |
826 | - | 182 | *corrected heigth-division-factor when using baro-height |
766 | - | 183 | |
762 | - | 184 | 20100531-1530 |
826 | - | 185 | *fixed bug in stats when max-distance > 999m |
762 | - | 186 | |
761 | - | 187 | 20100501-1130 |
826 | - | 188 | *distance to home now 4 digits for long distance flights |
189 | *max height and speed shown again in stats |
||
190 | *clear full screen before stats shown so the art-horizon does not bug us |
||
761 | - | 191 | |
758 | cascade | 192 | 20100419-0020 |
826 | - | 193 | *fixed bug causing PPM-based display on/off to fail |
194 | *fixed display of AGRESSiVA-horizion during motor run |
||
758 | cascade | 195 | |
757 | cascade | 196 | 20100412-2125 |
826 | - | 197 | *added mph/ft (two new chars added, reflash characters if you need ft/mph) |
198 | *AGRESSiVA-horizion now switchable via menu |
||
199 | *reworked menu a bit |
||
200 | *switched from -O2 to -Os because of the added stuff |
||
757 | cascade | 201 | |
753 | cascade | 202 | 20100403-0115 |
826 | - | 203 | *RC-RSSI now shown if available (RC_Quality is still fallback, still needs FC patch) |
204 | +AGRESSiVA-horizion to main trunk (NEW_ARTHORIZON 1 to test, needs new chars) |
||
205 | +chars needed for above mod to chars.mcm and chars.c |
||
753 | cascade | 206 | |
738 | cascade | 207 | 20100218-2330 |
826 | - | 208 | *hopefully fixed the laggy osd data problem |
209 | -send_data_mk has been striked out to save space |
||
210 | @nc-mode should be small enough for bootloader again ( Program: 14986 bytes (91.5% Full) ) |
||
738 | cascade | 211 | |
736 | cascade | 212 | 20100216-1430 |
826 | - | 213 | *some menu stuff |
214 | *stats in nc_default do not disturb the bigvario anymore |
||
215 | *reduced code size from 16088 bytes (98.2% Full) 15436 bytes (94.2% Full) |
||
736 | cascade | 216 | |
734 | cascade | 217 | 20100214-1700 |
826 | - | 218 | +mah wasted per flight (still counts up after landing, but space gets tight) |
219 | *init phase from 2000ms to 3000ms |
||
220 | *init only takes place after first "valid" UBat is received (<4V should case the Mega to reset anyways) |
||
734 | cascade | 221 | |
728 | cascade | 222 | 20100212-2310 |
826 | - | 223 | *adapted MK-datastructs to NC 0.18c |
224 | *added choice for current display measured by FC |
||
728 | cascade | 225 | |
685 | cascade | 226 | 20091109-1100 |
826 | - | 227 | +fc-only mode by Josef "jopl" Plasil (MK3Mag on FC and no NC) |
228 | *usart1 routine to filter out unwanted datasets (also big thanks to jopl) |
||
685 | cascade | 229 | |
677 | cascade | 230 | 20091102-2205 |
826 | - | 231 | +nc/fc software version display in bootup |
232 | *changed checkbytes because of previously removed EEPROM data |
||
677 | cascade | 233 | |
234 | 20091030-2222 |
||
235 | *synced NaviStruct to NC Code v0.17e |
||
236 | (since nothing of the new stuff is used right now, older NC version will still work) |
||
237 | |||
528 | cascade | 238 | 20090714-2100 |
239 | *fixed the flags (hopefully) for C-Strom and stuff |
||
240 | |||
523 | cascade | 241 | 20090706-2000 |
826 | - | 242 | *hopefully fixed the new 10th number showing functions |
243 | +support for GPS height instead of Baro |
||
523 | cascade | 244 | |
519 | cascade | 245 | 20090703-0005 |
826 | - | 246 | *write-number-functions changed, using itoa now, saves space, should be faster |
247 | *inline added for basic max7456-spi_send because saves procedure call (^= time) |
||
519 | cascade | 248 | |
514 | cascade | 249 | 20090627-1415 |
250 | *ALL characters now in Progmem, from now on there will be only ONE char-file! |
||
251 | |||
507 | cascade | 252 | 20090612-2100 |
826 | - | 253 | *spi transfer now struct driven (needs C-Strom 20090612-2100 now!!!) |
254 | *lesser spi update rate (caused problems on some strom-slaves) |
||
255 | *voltage gets transfered via spi as well |
||
256 | *menu to switch display of 2nd voltage measured by C-Strom on and off |
||
507 | cascade | 257 | |
499 | cascade | 258 | 20090604-1350 |
259 | *bugfix for stats |
||
507 | cascade | 260 | |
497 | cascade | 261 | 20090604-1330 |
262 | *possible to choose between different osd-layouts (via menu) |
||
499 | cascade | 263 | |
497 | cascade | 264 | 20090604-0700 |
265 | +(shaddi)osd_ncmode_minimal for less symbols during FPV |
||
266 | |||
489 | woggle | 267 | 20090601-2233 |
268 | *(woggle) changed timer init an interupt to be more precise |
||
269 | *(woggle) remove all warning during compile |
||
270 | *(woggle) simplify draw_big_variometer |
||
271 | *(woggle) put compass rose to PROGMEM |
||
272 | *(woggle) put directions array to PROGMEM |
||
389 | cascade | 273 | |
478 | cascade | 274 | 20090525-2305 |
477 | cascade | 275 | +HUD on/off via RC (connect to PPM, according to manual) testing stuff |
276 | |||
474 | cascade | 277 | 20090523-1150 |
278 | +pal/ntsc changable in menu (applied immedeately!) |
||
279 | |||
471 | cascade | 280 | 20090519-2245 |
826 | - | 281 | *mah corrected |
282 | +config gets saved now (menu item!) |
||
283 | *source moved a bit |
||
471 | cascade | 284 | |
468 | cascade | 285 | 20090519-0115 |
826 | - | 286 | +mah currently wasted |
287 | *some small changes |
||
468 | cascade | 288 | |
467 | cascade | 289 | 20090517-2345 |
290 | *modded the real alpha stuff i have been talking about below |
||
468 | cascade | 291 | |
465 | cascade | 292 | 20090516-2345 |
293 | +some really testing stuff 'bout current measurement, more to come |
||
294 | |||
459 | cascade | 295 | 20090513-2350 |
296 | *cellnumber autoconfig modified, offset set to 1,5V |
||
297 | *copy paste nick/roll error fixed |
||
298 | *clean after build in dist.sh |
||
299 | +a little shellscript to auto-build the files (testing) |
||
300 | *osd-layouts in seperate files so including own layouts should get easier |
||
301 | +build date is displayed during init to know which version you are runing |
||
302 | |||
303 | 20090513-1040 |
||
826 | - | 304 | *some code movement |
305 | +artificial horizon for FC-ONLY mode |
||
459 | cascade | 306 | |
454 | cascade | 307 | 20090512-2100 |
826 | - | 308 | +some FCONLY basics (set FCONLY to 1 in main.h to use it) |
459 | cascade | 309 | |
453 | cascade | 310 | 20090511-2345 |
826 | - | 311 | *battery voltages now calculated according to CELL_VOLT_MIN CELL_VOLT_MAX and CELL_NUM |
312 | *CELL_NUM -1 causes a rough auto detection of cell number |
||
313 | -UBAT_WRN and UBAT_MAX are now deprecated |
||
453 | cascade | 314 | |
412 | cascade | 315 | 20090427-2315 |
826 | - | 316 | +write_gps_pos(...) (needs to be tested) |
317 | +gps position is shown in stats screen for testing purpose |
||
412 | cascade | 318 | |
410 | shaddi | 319 | 20090427-2131 |
826 | - | 320 | *stats are only collected while engines running (shaddi) |
410 | shaddi | 321 | |
409 | shaddi | 322 | 20090427-2102 |
826 | - | 323 | *fixed maximum distance in stats (shaddi) |
409 | shaddi | 324 | |
407 | cascade | 325 | 20090427-2050 |
826 | - | 326 | *clear() now faster |
327 | *fixed calculation of max speed in stats (shaddi) |
||
328 | *littel typo in artificial horizon (thx joko) |
||
329 | *stats are only shown AFTER flight (more specific, after motors had been on at least once) |
||
330 | +indication icon for serial link (requires new character 198) |
||
331 | +indication icon for manual controll (stick > stick threshold) |
||
332 | (Character set 192 needs to be reflashed since new icon is in it) |
||
407 | cascade | 333 | |
389 | cascade | 334 | 20090420-0205 |
826 | - | 335 | *reset-bug fixed |
336 | *moved code a bit |
||
407 | cascade | 337 | |
387 | cascade | 338 | 20090419-2145 |
339 | *reset-bug workaround in usart1.c: usart1_DisableTXD and usart1_EnableTXD |
||
379 | cascade | 340 | |
386 | cascade | 341 | 20090419-1900 |
342 | *fixed bug in heading-fine conv for bearing to home |
||
343 | |||
385 | cascade | 344 | 20090419-1245 |
345 | *compass characters bigger |
||
346 | *battery position |
||
347 | +voltage-symbol to battery-voltage |
||
348 | (Character Set 208 needs to be reflashed since compass chars are in it) |
||
349 | |||
383 | cascade | 350 | 20090418-2015 |
351 | *fixed bug in Character Set 128 (reflash it if you already flashed it!) |
||
385 | cascade | 352 | +another set of vario chars |
383 | cascade | 353 | *changed vario to use new characters |
354 | *moved vario/home-bearing positions |
||
385 | cascade | 355 | *big vario now enabled via menu or BIGVARIO |
383 | cascade | 356 | (Character Set 112 needs to be flashed) |
385 | cascade | 357 | |
379 | cascade | 358 | 20090418-1235 |
359 | +big vario for testing purpose |
||
360 | (Character Set 192 needs to be flashed) |
||
383 | cascade | 361 | |
377 | cascade | 362 | 20090418-0100 |
363 | *variometer uses more steps (9 instead of 5) |
||
800 | - | 364 | *home-arrow is now home-clock using more steps (22,5� resolution) |
377 | cascade | 365 | +visual battery-gauge according to difference between UBAT_WRN and UBAT_MAX |
321 | cascade | 366 | |
375 | cascade | 367 | 20090417-1115 |
368 | *changed calculation of km/h (thx wowie) |
||
369 | *added JochenK_(joko)'s characters |
||
370 | (Character-Sets 128, 136, 144, 152, 160, 168, 176 and 184 need to be flashed!) |
||
371 | |||
367 | cascade | 372 | 20090408-1245 (shaddi) |
373 | *fixed distance towards home |
||
374 | |||
349 | cascade | 375 | 20090408-0035 |
376 | *rewrote number->display functions |
||
377 | *fixed height bug (uint vs int) |
||
378 | |||
346 | cascade | 379 | 20090407-2100 |
826 | - | 380 | +added request of OSD data, disrequest of debug data and uptime reset to menu |
381 | -removed the uptime-reset binding from S2 |
||
382 | +pgm space for some strings to save _normal_ data space |
||
383 | *some code movement |
||
346 | cascade | 384 | |
339 | cascade | 385 | 20090406-0130 |
386 | *MK-Datastruct updated to work with NaviCtrl 0.15c firmware |
||
387 | *changed flags from NO* to invers versions |
||
388 | *enhanced the menu a bit |
||
389 | -artificial horizon at bootup, the menu is cooler imho |
||
390 | |||
336 | cascade | 391 | 20090405-0207 |
392 | +NOOSD as requested |
||
393 | *height now corrected (thx lephisto) and displayed as .x up to 10m |
||
394 | |||
331 | cascade | 395 | 20090402-0106 |
396 | + disabling the txd pin while not using it so it won't interfere with KopterTool usage (thx joko) |
||
397 | + if no data has been received for over 2sec we re-request it |
||
398 | * tried source organisation a bit |
||
399 | |||
330 | shaddi | 400 | 20090401-1741 (shaddi) |
401 | + More precise Veriometer. Uses more more characters to show the speed of the movement |
||
826 | - | 402 | (Character-Set 232 needs to be flashed!) |
331 | cascade | 403 | |
326 | cascade | 404 | 20090331-1549 |
405 | + simple config menu during runtime, press S1 to jump in, S2 to cyle and S1 to accept choice |
||
406 | - S1 no longer requests the NC data |
||
331 | cascade | 407 | |
324 | cascade | 408 | 20090331-1305 |
409 | + added more statistics |
||
410 | * corrected S1/S2 mapping (d'oh) |
||
411 | + started simple mode controll, press S2 during bootup toggles artificial horizon |
||
412 | |||
321 | cascade | 413 | 20090329-1452 |
324 | cascade | 414 | * fixed bearing to home |
415 | + added flight stats (shown while engines off) |
||
416 | + sat icon should indicate PH/CH/Free now |
||
417 | + you need to flash characters 224-231 if you were using previous versions |
||
321 | cascade | 418 | |
419 | 20090327-2140 |
||
324 | cascade | 420 | * fixed km/h (was cm/s) |
421 | * fixed height m (was dm) |
||
422 | * modified incoming data speed to 100ms (was 200ms) |
||
321 | cascade | 423 | |
424 | 20090326-2031 |
||
677 | cascade | 425 | + first binary release |