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