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