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