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