Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / ChangeLog
1 commit 35c54b3a278fa9bc2bc7f4b5ee04866697c93ba0
2 Merge: 4f8eff7 6d018ab
3 Author: Bdale Garbee <bdale@gag.com>
4 Date:   Sun Sep 6 10:39:23 2009 -0600
5
6     Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
7
8 commit 6d018ab933832e2d80bb1564c339d9fb18b57be2
9 Author: Keith Packard <keithp@keithp.com>
10 Date:   Sat Sep 5 22:45:49 2009 -0700
11
12     Handle vageries of .telem files in ao-postflight
13     
14     Telem files have multiple entries of the same state, and sometimes
15     long gaps between recordings. Deal with this as best as possible.
16     
17     Signed-off-by: Keith Packard <keithp@keithp.com>
18
19 commit c46e832b28820d7c5be4efaacbbd7c0607927fe5
20 Author: Keith Packard <keithp@keithp.com>
21 Date:   Sat Sep 5 22:03:31 2009 -0700
22
23     Add simple post-flight analysis tool (ao-postflight)
24     
25     This tool reads either an eeprom or telem log file and displays some
26     rudimentary data (max accel/alt for each flight stage).
27     
28     Signed-off-by: Keith Packard <keithp@keithp.com>
29
30 commit 26f56b51bd11aa91f1d77b81827b49c28cb6ec5f
31 Author: Keith Packard <keithp@keithp.com>
32 Date:   Sat Sep 5 00:29:26 2009 -0700
33
34     Add ao-dumplog to capture flight log from command line
35     
36     This duplicates the functionality of the flight log stuf in ao-view,
37     except from the command line where it belongs.
38     
39     Signed-off-by: Keith Packard <keithp@keithp.com>
40
41 commit 73adae3661160d410dcc802873b530d255c210e5
42 Author: Keith Packard <keithp@keithp.com>
43 Date:   Fri Sep 4 15:30:22 2009 -0700
44
45     Add --device/-D support to the command line tools and manuals
46     
47     Use the new cc_usbdevs_find_by_arg function to locate suitable target
48     devices connected via USB.
49     
50     Signed-off-by: Keith Packard <keithp@keithp.com>
51
52 commit 4f8eff7401ee2d8092ab36fa33411f9b23dda880
53 Author: Bdale Garbee <bdale@gag.com>
54 Date:   Fri Sep 4 16:03:55 2009 -0600
55
56     update changelogs for Debian build
57
58 commit 332b056459b1352e233a8bf5f08498df12d32160
59 Author: Keith Packard <keithp@keithp.com>
60 Date:   Fri Sep 4 15:01:32 2009 -0700
61
62     'fix' ao-eeprom to read two blocks at once. Work around kernel bugs.
63     
64     The kernel appears to leave serial data undelivered at times. Reading
65     two blocks at once appears to make it relinquish the queued data.
66     
67     Signed-off-by: Keith Packard <keithp@keithp.com>
68
69 commit df88ae4c5f229efcc0ea5cb0a81fc2bb8f96fea2
70 Author: Keith Packard <keithp@keithp.com>
71 Date:   Fri Sep 4 14:23:02 2009 -0700
72
73     Add 'ao-list' utility to show attached AltOS devices
74     
75     Signed-off-by: Keith Packard <keithp@keithp.com>
76
77 commit 0935d6a7e907e20381a42882ae728051f9bece02
78 Author: Keith Packard <keithp@keithp.com>
79 Date:   Fri Sep 4 14:21:19 2009 -0700
80
81     Parse the USB serial number as an integer.
82     
83     AltOS devices use simple integer serial numbers, so parse the USB
84     value as such to make matching values more forgiving.
85     
86     Signed-off-by: Keith Packard <keithp@keithp.com>
87
88 commit 0c771d999914f9d17c723900f2987acc45fd0fbb
89 Author: Keith Packard <keithp@keithp.com>
90 Date:   Fri Sep 4 13:00:02 2009 -0700
91
92     Move usb scanning code to ao-tools library
93     
94     This will allow the scanning code to be used by the command line tools
95     as well as the ao-view GUI.
96     
97     Now that ao-view depends on the ao-tools library, it has been moved to
98     the ao-tools directory as well.
99     
100     Signed-off-by: Keith Packard <keithp@keithp.com>
101
102 commit 15341b6e6dcf52df083d6aa37ef881ea6ad48ee5
103 Author: Keith Packard <keithp@keithp.com>
104 Date:   Fri Sep 4 12:25:37 2009 -0700
105
106     Set all of the values to reset the radio for telemetry
107     
108     Was sizeof(rdf_setup) instead of sizeof(telemetry_setup) when
109     resetting the radio back to telemetry data mode from rdf mode. With
110     the length value removed from the rdf config, these two arrays are no
111     longer the same length, and so the last config value was not set
112     leaving the radio sending garbage.
113     
114     Signed-off-by: Keith Packard <keithp@keithp.com>
115
116 commit fee46389b70a624ab5b1128a8b4c3083c7747bcb
117 Author: Keith Packard <keithp@keithp.com>
118 Date:   Fri Sep 4 11:46:55 2009 -0700
119
120     Make RDF beacon only run on pad and after landing.
121     
122     It's pretty much impossible to RDF the rocket during flight, and it
123     interferes with the telemetry data stream. Leave it enabled on the pad
124     so that radios can be tested, and then re-enable it once the rocket
125     has landed.
126     
127     This patch also turns the rdf 'on' time into a parameter so it can be
128     changed, and then sets that parameter to 500ms, once every 5 seconds.
129     
130     Signed-off-by: Keith Packard <keithp@keithp.com>
131
132 commit 54545640b0db7747137655f84bc67fd290ecb904
133 Author: Keith Packard <keithp@keithp.com>
134 Date:   Fri Sep 4 11:45:52 2009 -0700
135
136     Add back the RDF tone generator
137     
138     Tracking the rocket on the ground may be easier using tones than using
139     the digital data stream, so we'll try that and see what we think.
140     
141     This reverts commit 3a3bfd471a868d546d83cdc431b53c8f5208edb9.
142     
143     Signed-off-by: Keith Packard <keithp@keithp.com>
144
145 commit 9fafee109e96435c96639b21211cac0500673a63
146 Author: Bdale Garbee <bdale@gag.com>
147 Date:   Wed Sep 2 23:18:15 2009 -0600
148
149     update changelogs for Debian build
150
151 commit cb4a73f3b65ba72f645fd37ab8712829c9537bf8
152 Merge: 9ddd869 e2e449d
153 Author: Bdale Garbee <bdale@gag.com>
154 Date:   Wed Sep 2 23:17:37 2009 -0600
155
156     Merge commit 'origin/master'
157
158 commit e2e449d5c23356e913f312de1fb2611a9dd5a352
159 Author: Keith Packard <keithp@keithp.com>
160 Date:   Wed Sep 2 22:01:52 2009 -0700
161
162     Remove bit-banging debug support from TM board builds
163     
164     Our current TM boards don't have the wires to do bit-banging to
165     another cc1111 board, so it doesn't make sense to fill up their flash
166     with useless code (and the 'help' text with useless commands). Leave
167     this to the TI board until we have boards that can serve as debug dongles.
168     
169     Signed-off-by: Keith Packard <keithp@keithp.com>
170
171 commit acea083d80e1ecc4287083519ea666964016b257
172 Author: Keith Packard <keithp@keithp.com>
173 Date:   Wed Sep 2 22:00:37 2009 -0700
174
175     Make the ao_log_record structures 8 bytes again.
176     
177     When the GPS signal strength data was added, the structure was
178     accidentally extended to 9 bytes, making all log records 9 bytes
179     long. While not a serious problem, this left log records spanning
180     across eeprom block boundaries, which seems like a bad plan.
181     
182     Signed-off-by: Keith Packard <keithp@keithp.com>
183
184 commit 7d39f17684feb49ac8a0017902158f298696e37c
185 Author: Keith Packard <keithp@keithp.com>
186 Date:   Wed Sep 2 21:57:54 2009 -0700
187
188     Make eeprom reads and writes across block boundary work
189     
190     Reading and writing across the block boundary was not stepping the
191     eeprom position after the partial i/o operation at the end of the
192     first block. This meant that the operation would re-use the end of the
193     previous block, either re-reading or re-writing it.
194     
195     Signed-off-by: Keith Packard <keithp@keithp.com>
196
197 commit 9ddd8696b4004ccc03238d95a8c2a1d07075e0fb
198 Author: Bdale Garbee <bdale@gag.com>
199 Date:   Mon Aug 31 16:48:03 2009 -0600
200
201     update changelogs for Debian build
202
203 commit 6926c4ab5d87a8f2eb4fcde2c673fb3a4639e115
204 Author: Bdale Garbee <bdale@gag.com>
205 Date:   Mon Aug 31 16:47:44 2009 -0600
206
207     pixmap file should not be executable
208
209 commit 1495e2f27acde3743c3764a0c31ee082224d6c64
210 Author: Bdale Garbee <bdale@gag.com>
211 Date:   Mon Aug 31 16:42:55 2009 -0600
212
213     update changelogs for Debian build
214
215 commit c8c5b7963babe8eb16e2651fba9cd2c8d1cba74e
216 Author: Bdale Garbee <bdale@gag.com>
217 Date:   Mon Aug 31 16:42:37 2009 -0600
218
219     deliver an icon for the Debian menu system
220
221 commit 591b99c232e780246fc07841c09c8c4e7835facb
222 Author: Bdale Garbee <bdale@gag.com>
223 Date:   Mon Aug 31 16:26:00 2009 -0600
224
225     update changelogs for Debian build
226
227 commit b34474c1f3083e73b7184d519f54d4c8031836fd
228 Merge: 8df1697 0d65bff
229 Author: Bdale Garbee <bdale@gag.com>
230 Date:   Mon Aug 31 16:25:32 2009 -0600
231
232     Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
233
234 commit 6358041f846ba9a20fa650c367d907dc4336e54c
235 Author: Keith Packard <keithp@keithp.com>
236 Date:   Sat Aug 22 13:38:56 2009 -0700
237
238     Enable GPS degraded mode, set 10 sec degraded timeout.
239     
240     No reason not to let the GPS report solutions whenever it likes, let's
241     see how this works.
242     
243     Signed-off-by: Keith Packard <keithp@keithp.com>
244
245 commit 0d65bff443c17d4d98c18b620ec075ab66b30efd
246 Author: Keith Packard <keithp@keithp.com>
247 Date:   Fri Aug 21 10:47:46 2009 -0700
248
249     Turn off GPS tracking data when not present in data stream
250     
251     Signed-off-by: Keith Packard <keithp@keithp.com>
252
253 commit 8df169791835510d96c11a3b0aa3cc5b79fa7fde
254 Author: Bdale Garbee <bdale@gag.com>
255 Date:   Wed Aug 19 02:21:23 2009 -0600
256
257     update changelogs for Debian build
258
259 commit 42ab6d52540d0326ef89e9d57954b08248558468
260 Author: Bdale Garbee <bdale@gag.com>
261 Date:   Wed Aug 19 02:21:06 2009 -0600
262
263     fix location for delivery of sources.list fragment
264
265 commit 977f5dc0bc7c666dcc1f21db77416efca0d696aa
266 Author: Bdale Garbee <bdale@gag.com>
267 Date:   Wed Aug 19 02:11:11 2009 -0600
268
269     update changelogs for Debian build
270
271 commit 8d4d6655f1b4c2fbc522fd255bfb75406e5ddaef
272 Author: Bdale Garbee <bdale@gag.com>
273 Date:   Wed Aug 19 02:11:00 2009 -0600
274
275     oops, aoview is now ao-view!
276
277 commit b9a97aea65f871fd287bc0bb566d8664766f4afd
278 Author: Bdale Garbee <bdale@gag.com>
279 Date:   Wed Aug 19 02:07:16 2009 -0600
280
281     update changelogs for Debian build
282
283 commit 21e3dd0affac89919e5d0e29c6e9eb1eacb51801
284 Author: Bdale Garbee <bdale@gag.com>
285 Date:   Wed Aug 19 02:06:49 2009 -0600
286
287     enable support for Debian menus
288
289 commit 0087c1776e0253fc2bd3b86f15bf9d1b32bdc45a
290 Author: Bdale Garbee <bdale@gag.com>
291 Date:   Wed Aug 19 00:52:57 2009 -0600
292
293     update changelogs for Debian build
294
295 commit 4486d9156e19e4280b42bcd422d81d04f2d04a92
296 Merge: dd09f0b 33edd62
297 Author: Bdale Garbee <bdale@gag.com>
298 Date:   Wed Aug 19 00:49:24 2009 -0600
299
300     Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
301
302 commit 33edd62992a32b0ec8ca66d879fa300871db5937
303 Author: Keith Packard <keithp@keithp.com>
304 Date:   Tue Aug 18 23:38:16 2009 -0700
305
306     Update ao-view to add GPS satellite tracking data
307     
308     This adds another column to the display to hold per-satellite GPS
309     tracking data and a count of the visible and locked sats.
310     
311     Signed-off-by: Keith Packard <keithp@keithp.com>
312
313 commit 29687cbd462a332d9a36ed87500c5b737dcae3f4
314 Author: Keith Packard <keithp@keithp.com>
315 Date:   Tue Aug 18 22:35:15 2009 -0700
316
317     Handle GPS satellite tracking data
318     
319     SiRF message #4 includes signal strength and GPS engine state for each
320     of the satellites being tracked. This data is now parsed and sent to
321     eeprom and the radio.
322     
323     Signed-off-by: Keith Packard <keithp@keithp.com>
324
325 commit dd09f0bc2b950c00f3b489878cd69ad8a003f46c
326 Author: Bdale Garbee <bdale@gag.com>
327 Date:   Tue Aug 18 21:57:01 2009 -0600
328
329     update changelogs for Debian build
330
331 commit cd5ce661e2a8f9694933358ccb5b916fbed089c2
332 Author: Bdale Garbee <bdale@gag.com>
333 Date:   Tue Aug 18 21:49:39 2009 -0600
334
335     add support for building Debian package
336
337 commit d996aa9b32fb0eb385bd3d158256c29788a42fe3
338 Merge: b3b2d3c 7d4ceb7
339 Author: Bdale Garbee <bdale@gag.com>
340 Date:   Tue Aug 18 18:56:09 2009 -0600
341
342     Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
343
344 commit 7d4ceb75a454e6c9b3fe0bd934fadcb5104dea36
345 Author: Keith Packard <keithp@keithp.com>
346 Date:   Tue Aug 18 17:55:22 2009 -0700
347
348     Add ao-ejection.1 man page
349     
350     Document the input requirements and output format
351     
352     Signed-off-by: Keith Packard <keithp@keithp.com>
353
354 commit b3b2d3c475a135084b5628c730fc6fca1ba0817b
355 Merge: 4685fc5 da12b89
356 Author: Bdale Garbee <bdale@gag.com>
357 Date:   Tue Aug 18 18:36:03 2009 -0600
358
359     Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
360
361 commit da12b89fb056a68e65ba363fef91d266727cb685
362 Author: Keith Packard <keithp@keithp.com>
363 Date:   Tue Aug 18 17:30:43 2009 -0700
364
365     Create ChangeLog from git log
366
367 commit 7d69e2b3715faed10ce21ad562fc4d25dfc5f9c1
368 Author: Keith Packard <keithp@keithp.com>
369 Date:   Tue Aug 18 17:29:29 2009 -0700
370
371     Fix ao-bitbang examples to not have . in the first column
372
373 commit 4685fc541466afbeefc151bcb64cd054739c048b
374 Merge: 1c2a0b6 c29275b
375 Author: Bdale Garbee <bdale@gag.com>
376 Date:   Tue Aug 18 18:09:38 2009 -0600
377
378     Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
379     
380     Conflicts:
381         ao-tools/ao-bitbang/Makefile.am
382         ao-tools/ao-eeprom/Makefile.am
383         ao-tools/ao-load/Makefile.am
384         ao-tools/ao-load/ao-load.c
385         ao-tools/ao-rawload/Makefile.am
386
387 commit c29275b72438637d46d7a50742882d2736eb176a
388 Author: Keith Packard <keithp@keithp.com>
389 Date:   Tue Aug 18 15:21:57 2009 -0700
390
391     Add manual pages for remaining commands.
392     
393     Manuals written for ao-bitbang, ao-eeprom, ao-load, ao-rawload and
394     ao-view.
395     
396     Manual for ao-dbg updated to reflect program name change.
397     
398     Signed-off-by: Keith Packard <keithp@keithp.com>
399
400 commit 9b03d620722dc54630539afba40720c30de69b2d
401 Author: Keith Packard <keithp@keithp.com>
402 Date:   Tue Aug 18 12:19:31 2009 -0700
403
404     Use --tty/-T on command line to specify target device
405     
406     Also, use the ALTOS_TTY environment variable in all tools. Note that
407     the magic value of "BITBANG" switches the library to connecting
408     through a CP2103 instead.
409     
410     Signed-off-by: Keith Packard <keithp@keithp.com>
411
412 commit 7c790fe859dff062692964338091ffbbcdf63257
413 Author: Keith Packard <keithp@keithp.com>
414 Date:   Tue Aug 18 12:40:24 2009 -0700
415
416     Rename tools to ao-<foo>
417     
418     Use a consistent prefix to make it easier to remember which programs
419     belong to this package
420     
421     Signed-off-by: Keith Packard <keithp@keithp.com>
422
423 commit 1c2a0b6653623b689d68d7349a6b2dce3e20a4a6
424 Author: Keith Packard <keithp@keithp.com>
425 Date:   Tue Aug 18 13:36:54 2009 -0700
426
427     re-add debugger sources
428
429 commit 9a9cce5510b87252f863239ac807b9fb4395b288
430 Author: Keith Packard <keithp@keithp.com>
431 Date:   Tue Aug 18 12:19:31 2009 -0700
432
433     Start working on using getopt for the tty name
434
435 commit 9789ca5e8caa9a013e804f307b9da380e147bd75
436 Author: Keith Packard <keithp@keithp.com>
437 Date:   Tue Aug 18 12:40:24 2009 -0700
438
439     Rename tools to ao-<foo>
440     
441     Use a consistent prefix to make it easier to remember which programs
442     belong to this package
443     
444     Signed-off-by: Keith Packard <keithp@keithp.com>
445
446 commit a5782398d968e7cb11f7203afada7c216f233b3b
447 Author: Keith Packard <keithp@keithp.com>
448 Date:   Tue Aug 18 11:34:28 2009 -0700
449
450     Remove unused cctools code paths for old libusb and cp2103 ioctls.
451     
452     Communication with the CP2103 board has gone through three revisions,
453     first using ioctls supported by the CP2103 kernel driver, then using
454     the old synchronous usb library and now using the newer libusb
455     asynchronous interface. There's no reason to keep shipping the old
456     stale code now that the new stuff works reliably.
457     
458     Signed-off-by: Keith Packard <keithp@keithp.com>
459
460 commit 7cba411de0780c65e3490ab67186a514f0ea42ec
461 Author: Keith Packard <keithp@keithp.com>
462 Date:   Mon Aug 17 20:47:31 2009 -0700
463
464     test for sdcc, nickle and readline
465     
466     Signed-off-by: Keith Packard <keithp@keithp.com>
467
468 commit f48dcffae761700355a17b59345d55a60703f0c4
469 Author: Keith Packard <keithp@keithp.com>
470 Date:   Sun Aug 9 20:43:10 2009 -0700
471
472     Sync USB data after each memory write command
473     
474     This makes sure we flush the USB link often enough for the other end to keep
475     up.
476     
477     Signed-off-by: Keith Packard <keithp@keithp.com>
478
479 commit cd5456f18e4b39ad76d5549df91a0e0cfb18a2e9
480 Author: Keith Packard <keithp@keithp.com>
481 Date:   Sun Aug 9 16:08:07 2009 -0700
482
483     Handle partial ALSA PCM writes
484     
485     The ALSA spec says that snd_pcm_writei will not return a partial write, but
486     at least on the OLPC, that's not true. Deal with this.
487     
488     Signed-off-by: Keith Packard <keithp@keithp.com>
489
490 commit 3056cb8eef5aee0dcd342488386355d8b8f574c8
491 Author: Keith Packard <keithp@keithp.com>
492 Date:   Sun Aug 9 15:55:19 2009 -0700
493
494     Check more alsa return statuses
495
496 commit 8ddf3345afd8cbf638e81993633f7861d8dbca63
497 Author: Keith Packard <keithp@keithp.com>
498 Date:   Sat Jul 18 01:47:34 2009 -0700
499
500     Don't report distance to rocket without valid GPS
501     
502     When there's no valid GPS data, don't try to report the distance and bearing
503     to the rocket after landing.
504     
505     Signed-off-by: Keith Packard <keithp@keithp.com>
506
507 commit fbcb7b20fa701a6e534d38e307839466545668e3
508 Author: Keith Packard <keithp@keithp.com>
509 Date:   Sat Jul 18 01:05:33 2009 -0700
510
511     Add B command to set serial baud rate
512     
513     Signed-off-by: Keith Packard <keithp@keithp.com>
514
515 commit 91b023e7e4eeed838e0320d2ddac0f6aac39e565
516 Author: Keith Packard <keithp@keithp.com>
517 Date:   Sat Jul 18 01:05:13 2009 -0700
518
519     Get rid of spaces after minus sign in climb value
520
521 commit 28be20cf914fb34dc3c776519708d0f02091764e
522 Author: Keith Packard <keithp@keithp.com>
523 Date:   Sat Jul 18 01:04:39 2009 -0700
524
525     Switch to 57600 baud for GPS data
526
527 commit d3f76ce58b9c0ed2e5a9fe3bbc7fb9cb38247714
528 Author: Keith Packard <keithp@keithp.com>
529 Date:   Sat Jul 18 01:04:17 2009 -0700
530
531     Drain serial port before changing speed
532     
533     Signed-off-by: Keith Packard <keithp@keithp.com>
534
535 commit d7c2d358ed8a1afc9f0ba2bd830b10f6b56dc7b1
536 Author: Keith Packard <keithp@keithp.com>
537 Date:   Sat Jul 18 00:44:42 2009 -0700
538
539     Display last known GPS coord while unlocked
540     
541     Signed-off-by: Keith Packard <keithp@keithp.com>
542
543 commit 5195fcfe239e430e1f9f11774c9a245c7b29dae9
544 Author: Keith Packard <keithp@keithp.com>
545 Date:   Sat Jul 18 00:44:01 2009 -0700
546
547     use g_source_destroy instead of free on serial object
548
549 commit 1e5e98bd8f5ea0bc15592de454e3629383462371
550 Author: Keith Packard <keithp@keithp.com>
551 Date:   Sat Jul 18 00:43:22 2009 -0700
552
553     Trim aoview_serial_set_callback args down to just port and callback
554
555 commit 08f37056deec25d77062bc411a04033401b033a5
556 Author: Keith Packard <keithp@keithp.com>
557 Date:   Fri Jul 17 22:11:03 2009 -0700
558
559     Reset GPS at boot time
560
561 commit 1150aa850f5a025b849556e32c4dddb27937d9af
562 Author: Keith Packard <keithp@keithp.com>
563 Date:   Fri Jul 17 22:10:43 2009 -0700
564
565     Fix up serial debug output
566
567 commit 2a7956a64935246475f92d44c08369e0230b676a
568 Author: Keith Packard <keithp@keithp.com>
569 Date:   Fri Jul 17 21:34:13 2009 -0700
570
571     Allow the GPS port to run at 4800 baud if desired
572
573 commit 8d650769c319261c97f5e68eff9138207b95c0f8
574 Author: Keith Packard <keithp@keithp.com>
575 Date:   Fri Jul 17 21:33:53 2009 -0700
576
577     Initialize the GPS serial protocol state
578     
579     Signed-off-by: Keith Packard <keithp@keithp.com>
580
581 commit ab40d224b39ba6d29c4056e2d2c365e1eb3d3793
582 Author: Keith Packard <keithp@keithp.com>
583 Date:   Fri Jul 17 21:33:18 2009 -0700
584
585     Use uint8_t for comparisons to avoid int conversions
586     
587     Signed-off-by: Keith Packard <keithp@keithp.com>
588
589 commit d6749bf24792bb41ca700cf4b8e5e1ac1a63cbf0
590 Author: Keith Packard <keithp@keithp.com>
591 Date:   Fri Jul 17 21:30:53 2009 -0700
592
593     Add AO_GPS_RUNNING state.
594     
595     This tracks whether the GPS receiver has ever sent a valid report to the
596     flight computer, allowing the user to tell whether the GPS receiver is
597     working at all.
598     
599     Signed-off-by: Keith Packard <keithp@keithp.com>
600
601 commit a1da7e871aee75308bc05ce1b7a0dc402e4c9509
602 Author: Keith Packard <keithp@keithp.com>
603 Date:   Fri Jul 17 21:25:35 2009 -0700
604
605     Add M command to monitor serial bytes
606
607 commit ddfa2308c0be4c002f982ae9da6032ee7854117d
608 Author: Keith Packard <keithp@keithp.com>
609 Date:   Fri Jul 17 21:24:45 2009 -0700
610
611     Support the not-connected GPS state
612
613 commit 34f148500df427c148188c0ada20bf914a7c74ba
614 Author: Keith Packard <keithp@keithp.com>
615 Date:   Fri Jul 17 19:23:10 2009 -0700
616
617     Use 57600 baud for GPS. Clean up gps init.
618     
619     Assume GPS is either in 4800 NMEA or 57600 SiRF mode, send just the sequence
620     to get from 4800 NMEA to 5760 SiRF.
621     
622     Also, eliminate threads from the gps test program.
623     
624     Signed-off-by: Keith Packard <keithp@keithp.com>
625
626 commit 2deca0c52cd6cfb4baceb59c8a5458344bada338
627 Author: Keith Packard <keithp@keithp.com>
628 Date:   Fri Jul 17 17:09:20 2009 -0700
629
630     Try harder to get the GPS receiver serial link sync'd up.
631     
632     We cannot assume that the GPS receiver is in any particular state when it
633     boots, so we try to send the serial configuration at several rates and hope
634     that it eventually sees something that it likes.
635     
636     Signed-off-by: Keith Packard <keithp@keithp.com>
637
638 commit 31d5670a9144b943ce9c8cb00deb5fb659af0b1c
639 Author: Keith Packard <keithp@keithp.com>
640 Date:   Fri Jul 17 17:06:18 2009 -0700
641
642     Rolling average for pad location. Say 'GPS ready'.
643     
644     Use a rolling average for the pad location, instead of just averaging all
645     positions. This filters out old (presumably less accurate) values eventually.
646     
647     When enough GPS samples have been acquired, say 'GPS ready'.
648     
649     Signed-off-by: Keith Packard <keithp@keithp.com>
650
651 commit bfe1e76c82738baaf65abbc58c3244a07ea8fefe
652 Author: Keith Packard <keithp@keithp.com>
653 Date:   Fri Jul 17 16:22:51 2009 -0700
654
655     Split GPS data into a separate column
656     
657     Signed-off-by: Keith Packard <keithp@keithp.com>
658
659 commit 5f0179652e8bb85add9067e5253e981c60f2c51e
660 Author: Keith Packard <keithp@keithp.com>
661 Date:   Fri Jul 17 16:03:35 2009 -0700
662
663     Fix up SiRF parsing and test code so that it actually works
664     
665     Signed-off-by: Keith Packard <keithp@keithp.com>
666
667 commit 0b35447d05a0c7eaf4fefcbcf0065fe3320bba82
668 Author: Keith Packard <keithp@keithp.com>
669 Date:   Fri Jul 17 13:58:14 2009 -0700
670
671     Add host-side gps protocol testing program
672
673 commit fef7334bddb9fccfbd6deab7d5d466ab3e76323a
674 Author: Keith Packard <keithp@keithp.com>
675 Date:   Sat Jul 11 00:56:13 2009 -0700
676
677     Hook aoview directly to alsa
678     
679     This skips the flite internal audio stuff which opened and closed the audio
680     device for each phrase. This caused the first part of some phrases to be
681     missed when using an external audio device.
682     
683     Signed-off-by: Keith Packard <keithp@keithp.com>
684
685 commit 80cadf44f5f1accd6ddfca25c2af8d4d424f26d9
686 Author: Keith Packard <keithp@keithp.com>
687 Date:   Thu Jul 9 20:55:10 2009 -0700
688
689     Show speed. Format numbers. Timeout and report final status.
690     
691     The speed value is now shown in the top label bar. Ascent shows
692     accelerometer-derived data, otherwise it's baro derived.
693     
694     All of the numbers displayed are now given sensible printf formats so they
695     don't contain way too many digits.
696     
697     Instead of doing periodic reporting based on flight tick count, data is
698     reported every 10 seconds based on wall time. After landing, or when no data
699     have been received for a while, final flight information is spoken.
700     
701     Signed-off-by: Keith Packard <keithp@keithp.com>
702
703 commit 19630ef084866f4230e68ccf11284b30c68128b1
704 Author: Keith Packard <keithp@keithp.com>
705 Date:   Sun Jul 5 08:35:28 2009 -0700
706
707     Dont smash aoview_monitor_parse input buffer
708
709 commit e506ed4b6efb86eab50204658fcd433b987e3831
710 Author: Keith Packard <keithp@keithp.com>
711 Date:   Tue Jun 30 15:25:52 2009 -0700
712
713     Integrate flite into aoview directly. Fix great circle computation.
714     
715     Use a separate thread for flite rather than a separate program.
716     Save voice state to gconf.
717     Add filters for replay file selection
718     
719     Signed-off-by: Keith Packard <keithp@keithp.com>
720
721 commit 5b988e0146075d57434f8484e1ec9fcf3e183df2
722 Author: Keith Packard <keithp@keithp.com>
723 Date:   Tue Jun 30 15:24:53 2009 -0700
724
725     Make window taller
726
727 commit 696233b088645bba1aaa6aa6c5358c3ecfa5cd3f
728 Author: Keith Packard <keithp@keithp.com>
729 Date:   Tue Jun 30 15:24:31 2009 -0700
730
731     Use 16kHz voice
732
733 commit 2e06772c8b6fd74f86e640ed97f0d5bc8c095c2f
734 Author: Keith Packard <keithp@keithp.com>
735 Date:   Tue Jun 30 11:58:30 2009 -0700
736
737     Add telem replay and larger labels
738     
739     Replays telemetry files in real time
740     Shows height/state/rssi in big values at the top.
741     
742     Signed-off-by: Keith Packard <keithp@keithp.com>
743
744 commit 566dde161385263700eaae51095eecfa9b5972ee
745 Author: Keith Packard <keithp@keithp.com>
746 Date:   Mon Jun 29 23:06:47 2009 -0700
747
748     Update aoview/.gitignore
749     
750     Signed-off-by: Keith Packard <keithp@keithp.com>
751
752 commit 4ca2d910f3be689fd3c78a4f1be0555d6b1a30c1
753 Author: Keith Packard <keithp@keithp.com>
754 Date:   Mon Jun 29 23:05:27 2009 -0700
755
756     Use flite to announce flight state
757     
758     This uses the flite voice synthesis library from festival to announce
759     altitude and speed information during the rocket flight.
760     
761     Signed-off-by: Keith Packard <keithp@keithp.com>
762
763 commit 527d7c803ed9597b210634018cb2eb9d048d9846
764 Author: Keith Packard <keithp@keithp.com>
765 Date:   Mon Jun 29 23:03:58 2009 -0700
766
767     Add GPS speed and error data to telemetry and aoview
768     
769     Having switched to the SiRF binary GPS format, the velocity and error data
770     can now be displayed.
771     
772     Signed-off-by: Keith Packard <keithp@keithp.com>
773
774 commit ee4919dd771b00e2a2dd1083c9528efa7baab50f
775 Author: Keith Packard <keithp@keithp.com>
776 Date:   Mon Jun 29 13:54:00 2009 -0700
777
778     Convert GPS to SiRF binary protocol.
779     
780     This switches the GPS unit from NMEA to SiRF protocol at startup and then
781     parses the binary data. The binary data uses a different encoding of lat/lon
782     than the NMEA strings, and so the telemetry and eeprom data formats change
783     with this switch.
784     
785     Signed-off-by: Keith Packard <keithp@keithp.com>
786
787 commit 49bf37767d2453869f2ca2c0832d1124322c66e0
788 Author: Keith Packard <keithp@keithp.com>
789 Date:   Wed Jun 17 23:22:25 2009 -0700
790
791     Add ejection computation utility
792     
793     Signed-off-by: Keith Packard <keithp@keithp.com>
794
795 commit e59520e343c2573b1b92c0b3c4aaa93e51bc55d3
796 Author: Keith Packard <keithp@keithp.com>
797 Date:   Wed Jun 17 13:55:23 2009 -0700
798
799     Fix clock initialization to not try to use 32kHz xtal on P2_3/P2_4
800     
801     None of our boards have a 32kHz xtal oscillator, instead we use those pins
802     (on Telemetrum) for the deployment firing circuits. The old clock
803     initialization code was switching from the 32kHz RC oscillator to the 32kHz
804     crystal and overriding our use of those pins.
805     
806     Signed-off-by: Keith Packard <keithp@keithp.com>
807
808 commit 1c3cc12c08ddefbd6456a55c54ef87dd94d4ae9a
809 Author: Keith Packard <keithp@keithp.com>
810 Date:   Sun Jun 14 17:25:34 2009 -0700
811
812     Some kernels reference USB ttys as tty/tty* instead of tty:tty*
813     
814     Signed-off-by: Keith Packard <keithp@keithp.com>
815
816 commit 0f2cbd41332b1b63865c5f1a4e749419b469853a
817 Author: Keith Packard <keithp@keithp.com>
818 Date:   Sun Jun 14 16:45:19 2009 -0700
819
820     Rename state apogee -> coast
821
822 commit 5834a12c1d3d71105c9e3d1ceaf9f3ffac9ff1eb
823 Author: Keith Packard <keithp@keithp.com>
824 Date:   Sun Jun 14 16:39:28 2009 -0700
825
826     rename states. launchpad -> pad, coast -> fast
827
828 commit 8c40f19acd09fe93d492c9355da8a1198c34b1c3
829 Author: Keith Packard <keithp@keithp.com>
830 Date:   Sun Jun 14 16:36:29 2009 -0700
831
832     Disable monitor mode when communicating via usb
833
834 commit 7adea9c59c73acd52743446c74fb675e0a1d6d05
835 Author: Keith Packard <keithp@keithp.com>
836 Date:   Thu Jun 4 14:38:45 2009 -0700
837
838     Format GPS seconds as %02d.%04d to avoid spaces in the value
839     
840     The aoview GPS parsing code doesn't deal well with spaces in the middle of
841     the value, so pad the seconds field with a zero as needed.
842     
843     Signed-off-by: Keith Packard <keithp@keithp.com>
844
845 commit a0e6bfee635b64092262936c858542318f6fc6dc
846 Author: Bdale Garbee <bdale@gag.com>
847 Date:   Thu Jun 4 13:11:48 2009 -0600
848
849     newer INSTALL file pulled in by autogen.sh
850
851 commit cf1e258d52b878df10b51a047709b10ecd51a68e
852 Author: Bdale Garbee <bdale@gag.com>
853 Date:   Thu Jun 4 13:09:29 2009 -0600
854
855     add a distclean target to src/Makefile
856
857 commit 176052b7c14fcad067835ecb550778faf67cf4da
858 Author: Bdale Garbee <bdale@gag.com>
859 Date:   Thu Jun 4 13:07:10 2009 -0600
860
861     add lib to the front of the subdir list
862
863 commit 208bc15714c7b4020c017eef19011c4eb9ab51e2
864 Author: Keith Packard <keithp@keithp.com>
865 Date:   Thu Jun 4 11:20:10 2009 -0700
866
867     Move build and debug tools to 'cctools' directory.
868     
869     These tools were merged in from the ccdbg package.
870     
871     Signed-off-by: Keith Packard <keithp@keithp.com>
872
873 commit 17d2432a8b9c15963cd3b821f025ad33972ef477
874 Merge: 210dbaa 8a9a3f0
875 Author: Keith Packard <keithp@keithp.com>
876 Date:   Thu Jun 4 11:13:15 2009 -0700
877
878     Merge ccdbg and altos sources into one giant repository
879     
880     Keeping these separate isn't making things any easier.
881     
882     Signed-off-by: Keith Packard <keithp@keithp.com>
883
884 commit 210dbaa23cdacf3a6f2d6e23493e96ee2ac9bca7
885 Author: Keith Packard <keithp@keithp.com>
886 Date:   Thu Jun 4 10:41:34 2009 -0700
887
888     Use autotools, move altos to src subdir
889     
890     Signed-off-by: Keith Packard <keithp@keithp.com>
891
892 commit 8cce307bb3156584ba17ae5a787f645dfee5fb94
893 Author: Keith Packard <keithp@keithp.com>
894 Date:   Thu Jun 4 10:25:30 2009 -0700
895
896     Make menu seperator insensitive
897
898 commit 778cae8fc5a4b30e5045e4703316fc61ae18562a
899 Author: Keith Packard <keithp@keithp.com>
900 Date:   Wed Jun 3 17:07:34 2009 -0700
901
902     aoview: Add eeprom data fetching
903     
904     Fetches the last flight data from a TM device connected via USB and writes
905     it to the flight log directory.
906     
907     Signed-off-by: Keith Packard <keithp@keithp.com>
908
909 commit bf140966e9649e75b884c8aa5f25ffbf9eed10ea
910 Author: Keith Packard <keithp@keithp.com>
911 Date:   Wed Jun 3 10:57:46 2009 -0700
912
913     Stop log dumping at flight end. Print 'end' at end of log.
914     
915     No reason to continue dumping data past the end of the flight now that the
916     logging stuff has been demonstrated to work reliably. Also, to make
917     automated log dumping easier, this prints out 'end' after the log data so
918     that aoview knows when to stop reading.
919     
920     Signed-off-by: Keith Packard <keithp@keithp.com>
921
922 commit 35ac66969abe24ca23776618306a59fc17770e06
923 Author: Keith Packard <keithp@keithp.com>
924 Date:   Sun May 31 09:22:01 2009 -0700
925
926     Start adding bi-directional packet link
927
928 commit 3a3bfd471a868d546d83cdc431b53c8f5208edb9
929 Author: Keith Packard <keithp@keithp.com>
930 Date:   Thu May 28 23:17:33 2009 -0700
931
932     Eliminate RDF tone generation.
933     
934     Now that we have a viable telemetry-signal based RDF device via TeleDongle,
935     there's no reason to continue to waste power and bandwidth with a NFM tone.
936     
937     Signed-off-by: Keith Packard <keithp@keithp.com>
938
939 commit 4d83eef0fe1d24a845ab29a535dfc56e13e7ee20
940 Author: Keith Packard <keithp@keithp.com>
941 Date:   Thu May 28 23:17:25 2009 -0700
942
943     Change .gitignore to match new aoload procedure
944
945 commit dcfcf3bec6788460b6fe8c239c80bad4526bd15b
946 Author: Keith Packard <keithp@keithp.com>
947 Date:   Wed May 27 22:01:37 2009 -0700
948
949     Leave serial number writing to aoload
950     
951     Instead of building per-serial hex files, leave that
952     process to the new aoload program
953     
954     Signed-off-by: Keith Packard <keithp@keithp.com>
955
956 commit 8a9a3f02b951382573ff74dd6ce5a1c0f335fa86
957 Author: Keith Packard <keithp@keithp.com>
958 Date:   Wed May 27 21:53:15 2009 -0700
959
960     Add aoload to load serial-numbered altos binaries.
961     
962     aoload is a custom version of ccload which edits the data before sending it
963     to the target machine, writing the target serial number into the data.
964     
965     Signed-off-by: Keith Packard <keithp@keithp.com>
966
967 commit 5a7a63c34b778e40a61ddabd16ec1af9a2be50c3
968 Author: Keith Packard <keithp@keithp.com>
969 Date:   Sat May 23 21:20:12 2009 -0700
970
971     Fix aoview telemetry GPS parsing code to use correct columns
972     
973     This code was trying to pull the GPS data from the wrong columns, causing
974     aoview to fail to display GPS information.
975     
976     Signed-off-by: Keith Packard <keithp@keithp.com>
977
978 commit 26988c3e7acb2fa832810475e43e08fd2867459c
979 Author: Keith Packard <keithp@keithp.com>
980 Date:   Sat May 23 21:18:57 2009 -0700
981
982     Parse both telemetry or log data ao_flight_test
983     
984     Change the way data is fed from files to the flight test rig to handle
985     either kind of input file.
986     
987     Signed-off-by: Keith Packard <keithp@keithp.com>
988
989 commit d6f5a0689023546464a71561f53fa2c943077c88
990 Author: Keith Packard <keithp@keithp.com>
991 Date:   Sat May 23 21:16:22 2009 -0700
992
993     Avoid 16-bit overflow in velocity computation.
994     
995     Adding two 16 bit integers together can wrap around to negative numbers,
996     this resulted in velocity values which never decreased, making the switch
997     from coast to apogee state not occur.
998     
999     Signed-off-by: Keith Packard <keithp@keithp.com>
1000
1001 commit aa6d87aeb616dd62f0debaded297232022b4f8bd
1002 Author: Keith Packard <keithp@keithp.com>
1003 Date:   Wed May 20 09:44:55 2009 -0700
1004
1005     Make file handling more general so it can be reused.
1006     
1007     The log file handling stuff will be useful for saving eeprom data, so pull
1008     it out of the real-time log handling code and make a general interface.
1009     
1010     Signed-off-by: Keith Packard <keithp@keithp.com>
1011
1012 commit b730c8bcbce649cdddba935e1112aaae538bc526
1013 Author: Keith Packard <keithp@keithp.com>
1014 Date:   Sun May 17 23:54:44 2009 -0700
1015
1016     Ignore aoview_glade.h
1017
1018 commit 91b07410122d0eaaf292cdb31c200925d45eaf2c
1019 Author: Keith Packard <keithp@keithp.com>
1020 Date:   Sun May 17 23:36:21 2009 -0700
1021
1022     Transmit computed ground pressure and acceleration values
1023     
1024     These are the last two values relevant to figuring out the state of the
1025     flight computer, and as they are computed by averaging 10 seconds of 100Hz
1026     sample data, they're a lot more accurate than anything the receiver could do
1027     on its own.
1028     
1029     Signed-off-by: Keith Packard <keithp@keithp.com>
1030
1031 commit 71d1689759829f1bc8550f1a4d8c9f2dc90b2ab4
1032 Author: Keith Packard <keithp@keithp.com>
1033 Date:   Sun May 17 23:18:09 2009 -0700
1034
1035     Provide install target
1036
1037 commit f301b95e87c8ec1e3b58d595a05d486bede5e0c2
1038 Author: Keith Packard <keithp@keithp.com>
1039 Date:   Sun May 17 23:13:20 2009 -0700
1040
1041     Embed glade file in executable
1042     
1043     This eliminates install issues nicely.
1044     
1045     Signed-off-by: Keith Packard <keithp@keithp.com>
1046
1047 commit 26361686d6fc63dc22d22285f0543c5c2c756fb4
1048 Author: Keith Packard <keithp@keithp.com>
1049 Date:   Sun May 17 23:05:23 2009 -0700
1050
1051     Add About dialog to aoview.
1052     
1053     Signed-off-by: Keith Packard <keithp@keithp.com>
1054
1055 commit 0f3233c49f43cd4e372e613303919ce4d50255b2
1056 Author: Keith Packard <keithp@keithp.com>
1057 Date:   Sun May 17 22:44:19 2009 -0700
1058
1059     USB device names can contain '.' too
1060     
1061     Depending on the hierarchy of devices, names can contain '.', so allow those
1062     too.
1063     
1064     Signed-off-by: Keith Packard <keithp@keithp.com>
1065
1066 commit 33221277690e6ee30387c506c3f2b8237ed48efd
1067 Author: Keith Packard <keithp@keithp.com>
1068 Date:   Sun May 17 22:43:34 2009 -0700
1069
1070     scandir returns -1 on error
1071     
1072     In which case, the namelist is invalid, so don't look at it, and don't free
1073     it.
1074     
1075     Signed-off-by: Keith Packard <keithp@keithp.com>
1076
1077 commit 7cb9fb675f56bf30ab6bf0bcdc5cb679709ffe3e
1078 Author: Keith Packard <keithp@keithp.com>
1079 Date:   Sun May 17 22:29:54 2009 -0700
1080
1081     Send computed accel/vel/pres values over the radio
1082     
1083     These computed values reflect what the flight computer is actually refering
1084     to for state changes, and will be useful in debugging the flight software as
1085     well as provide a filtered view of the data.
1086     
1087     Signed-off-by: Keith Packard <keithp@keithp.com>
1088
1089 commit 2c780d67b8a22d75a2da4b2af21fd35f0c6f5236
1090 Author: Keith Packard <keithp@keithp.com>
1091 Date:   Sun May 17 22:29:06 2009 -0700
1092
1093     Handle disappearing serial devices
1094     
1095     Put up a dialog when the serial open fails, and shut down monitoring when
1096     the serial device disappears while running.
1097     
1098     Signed-off-by: Keith Packard <keithp@keithp.com>
1099
1100 commit 69616104813fc5ba89fb3128d04fb9328961c59c
1101 Author: Keith Packard <keithp@keithp.com>
1102 Date:   Sun May 17 22:24:53 2009 -0700
1103
1104     While on the pad, zero out velocity every second
1105     
1106     We integrate acceleration to get velocity, but that means sitting on the pad
1107     for a long time can add substantial error to the velocity value. Each
1108     second, take the velocity value from a full second ago and subtract that out
1109     of the current velocity. Once we detect boost, this will stop, which means
1110     that as long as we detect boost within a second, we won't have subtracted
1111     out any "real" velocity.
1112     
1113     This keeps the pad velocity hovering around zero, which is pretty useful.
1114     
1115     Signed-off-by: Keith Packard <keithp@keithp.com>
1116
1117 commit 1234694eb903b204488ddc7cb30bcfe34bf1e677
1118 Author: Keith Packard <keithp@keithp.com>
1119 Date:   Sun May 17 01:29:06 2009 -0700
1120
1121     Clear table, reset log on disconnect
1122
1123 commit 4316b6af86b37522038e642235c163fcaad52e96
1124 Author: Keith Packard <keithp@keithp.com>
1125 Date:   Sun May 17 01:28:16 2009 -0700
1126
1127     Add pad lat/lon, max accel, max height
1128     
1129     Signed-off-by: Keith Packard <keithp@keithp.com>
1130
1131 commit 4348281bd788a13ea700413537f12da3c00356e4
1132 Author: Keith Packard <keithp@keithp.com>
1133 Date:   Sun May 17 00:46:09 2009 -0700
1134
1135     Clean up GPS display
1136     
1137     Signed-off-by: Keith Packard <keithp@keithp.com>
1138
1139 commit ff68e38770351ddac3285ce275cd85adab01fd3d
1140 Author: Keith Packard <keithp@keithp.com>
1141 Date:   Sun May 17 00:45:38 2009 -0700
1142
1143     Make aoview window taller
1144     
1145     Signed-off-by: Keith Packard <keithp@keithp.com>
1146
1147 commit be3f4fed7b863c8cdaabe32b61b65a8b3cd11355
1148 Author: Keith Packard <keithp@keithp.com>
1149 Date:   Sun May 17 00:13:45 2009 -0700
1150
1151     Add lots more aoview UI bits
1152     
1153     Logs data to files, displays current state in window.
1154     
1155     Signed-off-by: Keith Packard <keithp@keithp.com>
1156
1157 commit 93d7ce8e054515ed7b166eb042ae7f47e564d21d
1158 Author: Keith Packard <keithp@keithp.com>
1159 Date:   Sat May 16 20:45:26 2009 -0700
1160
1161     When logging starts up, right the whole ring to the log.
1162     
1163     This preserves the data pre boost-detect for later analysis.
1164     
1165     Signed-off-by: Keith Packard <keithp@keithp.com>
1166
1167 commit fec4212a59a7b3321536b25707dcabc43c797c33
1168 Author: Keith Packard <keithp@keithp.com>
1169 Date:   Sat May 16 20:04:31 2009 -0700
1170
1171     Abandon use of accelerometer for apogee detect.
1172     
1173     Integrating the accelerometer data to compute velocity worked for one rocket
1174     flight, but additional testing shows that it doesn't work in other
1175     airframes. Until we figure out how this should work, we'll rely on the
1176     altimeter to detect apogee.
1177     
1178     Signed-off-by: Keith Packard <keithp@keithp.com>
1179
1180 commit 09771c644de54ae354e8f98af7ba74289b3c0fcc
1181 Author: Keith Packard <keithp@keithp.com>
1182 Date:   Sat May 16 02:25:04 2009 -0700
1183
1184     Add preliminary aoview code
1185     
1186     AoView connects with TeleDongle to present telemetry information in a
1187     reasonable form. Right now, it just displays information to stdout, but it
1188     does have fancy dialogs for finding the USB devices.
1189     
1190     Signed-off-by: Keith Packard <keithp@keithp.com>
1191
1192 commit 37250b00f6286aee4b3b28604f5d463db3079a89
1193 Author: Keith Packard <keithp@keithp.com>
1194 Date:   Wed May 13 20:41:54 2009 -0700
1195
1196     Discard usb output before connection. Handle USB reset.
1197     
1198     Discarding output before USB is plugged in allows threads that send output
1199     and do other things to work without a USB connection. Unfortuantely, there
1200     doesn't appear to be any way to detect when the USB link is disconnected,
1201     which means that once USB is enabled, future writes will continue to block.
1202     
1203     USB reset causes the USB interrupts to all be reconfigured back to power-on
1204     state.
1205     
1206     Signed-off-by: Keith Packard <keithp@keithp.com>
1207
1208 commit 9b974217958b1017e62d6c4f4568f547ccc30c58
1209 Author: Keith Packard <keithp@keithp.com>
1210 Date:   Wed May 13 20:40:42 2009 -0700
1211
1212     Enable radio monitor by default in teleterra, teledongle and tidongle
1213     
1214     These ground loads want to monitor the radio constantly, and not require use
1215     of the 'm' command before listening.
1216     
1217     Signed-off-by: Keith Packard <keithp@keithp.com>
1218
1219 commit 25fc03a333b2cfad0a93ebc385fbcf74b63c229e
1220 Author: Keith Packard <keithp@keithp.com>
1221 Date:   Wed May 13 20:39:28 2009 -0700
1222
1223     Remove monitor/rssi functions from telemetrum load
1224     
1225     Telemetrum is now a flight-only load, use teleterra or teledongle for ground
1226     boards.
1227     
1228     Signed-off-by: Keith Packard <keithp@keithp.com>
1229
1230 commit 05493b98eb1ae4d30cb0b600849d70b03fa33594
1231 Author: Keith Packard <keithp@keithp.com>
1232 Date:   Wed May 13 20:38:11 2009 -0700
1233
1234     Split out ao_state_names to separate file
1235     
1236     Allows state names to be used in programs without monitoring enabled.
1237     
1238     Signed-off-by: Keith Packard <keithp@keithp.com>
1239
1240 commit d085d43701e3cdd2119e947a9ae45baa78c80318
1241 Author: Keith Packard <keithp@keithp.com>
1242 Date:   Wed May 13 14:29:30 2009 -0700
1243
1244     Indicate RSSI with a blinking LED
1245     
1246     Blink the red LED at a rate proportional to the RSSI value.
1247     
1248     Signed-off-by: Keith Packard <keithp@keithp.com>
1249
1250 commit 055331d5f7d5adc40c348c3efd331a562dcda82a
1251 Author: Keith Packard <keithp@keithp.com>
1252 Date:   Wed May 13 11:19:13 2009 -0700
1253
1254     Make ao_flight_test show AGL altitude and positive acceleration under boost
1255     
1256     This makes the output more readable
1257     
1258     Signed-off-by: Keith Packard <keithp@keithp.com>
1259
1260 commit d91208fbf5fc7797b93087ef8619454c4bed0130
1261 Author: Keith Packard <keithp@keithp.com>
1262 Date:   Wed May 13 11:18:24 2009 -0700
1263
1264     Make ao_flight_test able to read raw logging data
1265     
1266     Protect ao_flight_test reading functions so that a simple
1267     'script' output can be fed to the program and have it work correctly.
1268     
1269     Signed-off-by: Keith Packard <keithp@keithp.com>
1270
1271 commit d3dbd8949e1102220ad5fd0863f493c819b96e46
1272 Author: Keith Packard <keithp@keithp.com>
1273 Date:   Wed May 13 11:16:53 2009 -0700
1274
1275     Print only RSSI when packet CRC is invalid
1276     
1277     Packets with invalid CRC usually contain bogus data, so don't print that,
1278     just print out the RSSI which may contain useful data.
1279     
1280     Signed-off-by: Keith Packard <keithp@keithp.com>
1281
1282 commit 8168820b667cc1deffab64dd81cb4e6e2e6eabe4
1283 Author: Keith Packard <keithp@keithp.com>
1284 Date:   Wed May 13 11:00:43 2009 -0700
1285
1286     Accelerometer-based velocity values are invalid after apogee
1287     
1288     Because the orientation of the flight computer relative to the ground is
1289     unknown after apogee, the accelerometer data cannot be integrated to compute
1290     velocity. Main deploy is now based purely on barometric altitude and landing
1291     detection no longer checks for a low velocity value.
1292     
1293     Signed-off-by: Keith Packard <keithp@keithp.com>
1294
1295 commit 24fdda44ff8604e40510b196ead17564d8f8cd3d
1296 Author: Keith Packard <keithp@keithp.com>
1297 Date:   Wed May 13 10:59:04 2009 -0700
1298
1299     Add velocity check for boost detect via accelerometer
1300     
1301     Bumping the rocket can cause a brief period of high acceleration, which may
1302     cause a mistaken boost detection. Require both a high acceleration and
1303     reasonable velocity to trigger boost phase.
1304     
1305     Signed-off-by: Keith Packard <keithp@keithp.com>
1306
1307 commit 7a1aa3fdbc0d1fae5e7ee027bf8904598c6ebe41
1308 Author: Keith Packard <keithp@keithp.com>
1309 Date:   Wed May 13 10:58:30 2009 -0700
1310
1311     Typo in callsign
1312
1313 commit 497c89a7d08920630894b2605c3b6a0bdc4c229b
1314 Author: Keith Packard <keithp@keithp.com>
1315 Date:   Sun May 10 23:11:06 2009 -0700
1316
1317     Use recorded accelerometer baseline data in ao_flight_test
1318     
1319     With the flight computer recording a long-term average value for the
1320     accelerometer in the flight record, use that to prime the flight test code
1321     when running a log file through the simulator.
1322     
1323     Signed-off-by: Keith Packard <keithp@keithp.com>
1324
1325 commit ba3c53636e485450f48093d0a88a6629775f7c3a
1326 Author: Keith Packard <keithp@keithp.com>
1327 Date:   Sun May 10 23:01:16 2009 -0700
1328
1329     Don't re-initialize the landing range data at each apogee detect sample
1330     
1331     The landing range values are used only after apogee detect, so we need only
1332     initialize them on the transition from apogee to drogue.
1333     
1334     Signed-off-by: Keith Packard <keithp@keithp.com>
1335
1336 commit b623b1098bc7a10d471730259438fb82804221d0
1337 Author: Keith Packard <keithp@keithp.com>
1338 Date:   Sun May 10 23:00:06 2009 -0700
1339
1340     Initialize ao_min_vel with |ao_flight_vel|
1341     
1342     As ao_min_vel is stored as an absolute value, it's important to preserve
1343     that invariant, even though we don't expect ao_flight_vel to be negative at
1344     coast.
1345     
1346     Signed-off-by: Keith Packard <keithp@keithp.com>
1347
1348 commit e9584e846b9bd7926d61451d32ba5d7a30416f7b
1349 Author: Keith Packard <keithp@keithp.com>
1350 Date:   Sun May 10 22:58:31 2009 -0700
1351
1352     Decrease telemetry rate on the pad to 1/sec instead of 20/sec
1353     
1354     Transmitting telemetry through the radio consumes a significant amount of
1355     battery; reducing the rate to 1/sec will reduce power usage while waiting
1356     for launch.
1357     
1358     Signed-off-by: Keith Packard <keithp@keithp.com>
1359
1360 commit 97cecb517cd7bf75e1219c76a93bfe6964c07052
1361 Author: Keith Packard <keithp@keithp.com>
1362 Date:   Sun May 10 22:57:19 2009 -0700
1363
1364     Increase the initial accel/baro average to 1000 samples
1365     
1366     To get an accurate baseline of the launchpad state, take a longer average of
1367     the two sensors as the unit boots up.
1368     
1369     Signed-off-by: Keith Packard <keithp@keithp.com>
1370
1371 commit 98806b1ff3f41484663d61ff430e9e2764c7b5e6
1372 Author: Keith Packard <keithp@keithp.com>
1373 Date:   Sun May 10 22:54:14 2009 -0700
1374
1375     Record average accelerometer value in flight start log record
1376     
1377     The average accelerometer value cannot be extracted from the log as the
1378     record starts after that is computed. As that drives much of the
1379     accelerometer-based state transition logic, it is an important value to
1380     have, so we log it as part of the flight start record now.
1381     
1382     Signed-off-by: Keith Packard <keithp@keithp.com>
1383
1384 commit a12edbfe21fe27a9efbf87bacda9ab4806256e2b
1385 Author: Keith Packard <keithp@keithp.com>
1386 Date:   Sat May 9 10:24:10 2009 -0700
1387
1388     Add version command to show product information
1389
1390 commit e80b87f5e3ccf152d67a2e87bdefda161c455599
1391 Author: Keith Packard <keithp@keithp.com>
1392 Date:   Sat May 9 10:23:49 2009 -0700
1393
1394     Pad callsign with nuls
1395
1396 commit beae3360828da21eb1a3c4f88e930f242d4e36b7
1397 Author: Keith Packard <keithp@keithp.com>
1398 Date:   Fri May 1 08:14:57 2009 -0700
1399
1400     USB spec limits bulk endpoints to 64 byte payload max.
1401     
1402     For full-speed devices, bulk endpoints may use 8, 16, 32 or 64 bytes, but no
1403     more.
1404
1405 commit de7814c738488c2c16c6216c93fa78128895e5d5
1406 Author: Keith Packard <keithp@keithp.com>
1407 Date:   Wed Apr 29 17:46:56 2009 -0700
1408
1409     Use 'char' instead of 'uint8_t' for character data
1410     
1411     String and character constants are of char type, so using uint8_t causes
1412     promotion to 16-bit types when comparing the two.
1413
1414 commit 4ae74fffb939d67424efa3e7f433637f1f920ebc
1415 Author: Keith Packard <keithp@keithp.com>
1416 Date:   Wed Apr 29 17:46:36 2009 -0700
1417
1418     Eliminate incorrect cast in printf string argument
1419     
1420     char * is a pointer to a string in the default address space, not a generic pointer
1421     to a string. As such, the compiler (at least 2.9.0) mis-compiles this if the
1422     cast is included.
1423
1424 commit 39f2a3c6bd501d12a92bfd38434ce67bb5beb70d
1425 Author: Keith Packard <keithp@keithp.com>
1426 Date:   Wed Apr 29 17:44:41 2009 -0700
1427
1428     Correct radio frequency shown in config display.
1429     
1430     Radio frequency base is 434.550, not 435.550
1431
1432 commit 75ca1751b7cac2f8074d0713ee96d6ab45b54f19
1433 Author: Keith Packard <keithp@keithp.com>
1434 Date:   Wed Apr 29 17:42:26 2009 -0700
1435
1436     Reset landing interval tests at apogee
1437     
1438     This moves all of the interval management into the landing test code and
1439     out of the main loop. The interval is reset at apogee to make sure the
1440     sensors produce a stable reading for at least 20 seconds
1441
1442 commit 7a1b77c2d7253a681389f32b70e2460aac188807
1443 Author: Bdale Garbee <bdale@gag.com>
1444 Date:   Sun Apr 26 17:53:13 2009 -0600
1445
1446     clean up host programs, too
1447
1448 commit 5df80c346d65a9d56a8699b056dc44924acb31fe
1449 Author: Keith Packard <keithp@keithp.com>
1450 Date:   Sun Apr 26 16:04:07 2009 -0700
1451
1452     Was missing v_batt in adc dump command
1453
1454 commit c3fec2c4c65db71e88ef0c05c69463438a7cfc6c
1455 Author: Keith Packard <keithp@keithp.com>
1456 Date:   Sun Apr 26 15:38:28 2009 -0700
1457
1458     Add manual ignition and igniter test commands
1459
1460 commit 819f1de8dd6010fae050bcef930943c7923929f9
1461 Author: Keith Packard <keithp@keithp.com>
1462 Date:   Sun Apr 26 15:38:03 2009 -0700
1463
1464     Clean up commands a bit
1465
1466 commit 178abb5c8439509926a5507911d7148b84f051b8
1467 Author: Keith Packard <keithp@keithp.com>
1468 Date:   Sun Apr 26 15:08:58 2009 -0700
1469
1470     Clear more files on make clean
1471
1472 commit 70a69f3acdca27b80cdb2069de59bbc6dba83dbd
1473 Author: Keith Packard <keithp@keithp.com>
1474 Date:   Sun Apr 26 15:05:29 2009 -0700
1475
1476     Label binaries with product and serial info
1477
1478 commit 5ed3b1cb52b573db1fee9655a29a0e6dd72f53fe
1479 Author: Keith Packard <keithp@keithp.com>
1480 Date:   Sun Apr 26 01:37:02 2009 -0700
1481
1482     Make sure full log is written and flushed on landing.
1483     
1484     The final state change to landing is recorded in the logging thread, so have
1485     that turn off logging once it has recorded that state. Then make it go to
1486     sleep.
1487
1488 commit 2e737ad00cad5d893b252d8aa9dbff3d9b800731
1489 Author: Keith Packard <keithp@keithp.com>
1490 Date:   Sun Apr 26 01:36:53 2009 -0700
1491
1492     Clean up monitor output a bit
1493
1494 commit 38a0b61b0a0b3c00f064c8d562950a17a6ddff4a
1495 Author: Keith Packard <keithp@keithp.com>
1496 Date:   Sun Apr 26 00:11:32 2009 -0700
1497
1498     Add configuration support
1499     
1500     Current config variables:
1501     Main deploy altitude above launch (in meters)
1502     Acceleration zero g calibration (manual or automatic)
1503     Radio channel (freq = 435.550MHz + channel * 100kHz)
1504     Callsign (max 8 characters)
1505     
1506     Supporting this involved shuffling code around so that the
1507     non-telemetrum builds could include only the stuff they needed.
1508
1509 commit c65f1a1acd2ca00758833cec5d3f8056d303d3e2
1510 Author: Keith Packard <keithp@keithp.com>
1511 Date:   Sat Apr 25 14:44:33 2009 -0700
1512
1513     Allow for slower ADC operation. Add power saving code.
1514     
1515     This tries to make the flight computer use less power by disabling USB in
1516     flight mode, lowering the telemetry rate after ascent. It also disables the
1517     RDF beacon during ascent and re-enables it once descent has started.
1518
1519 commit 8e7b48b5f090be81980ab00fbce814ae1cc253e4
1520 Author: Keith Packard <keithp@keithp.com>
1521 Date:   Sat Apr 25 14:44:04 2009 -0700
1522
1523     Allow ADC to be disabled
1524
1525 commit 7bc3d9962872850e7b420221cf689db16b4305cc
1526 Author: Keith Packard <keithp@keithp.com>
1527 Date:   Sat Apr 25 14:43:23 2009 -0700
1528
1529     Place CPU in P0 state while idle
1530
1531 commit e45fce7f82d704d677f84c69b0e07588d109d780
1532 Author: Keith Packard <keithp@keithp.com>
1533 Date:   Sat Apr 25 14:42:20 2009 -0700
1534
1535     Add RDF beacon and callsign to telemetry
1536
1537 commit 61510f98404bca6861b2da98f6cd9ba9deb76968
1538 Author: Keith Packard <keithp@keithp.com>
1539 Date:   Sat Apr 25 14:40:51 2009 -0700
1540
1541     Add radio code to emit a 1kHz tone
1542
1543 commit 0f07803d84b5ac89500ee33a6818c50583e3ff7f
1544 Author: Keith Packard <keithp@keithp.com>
1545 Date:   Sat Apr 25 13:18:37 2009 -0700
1546
1547     Allow the USB system to be disabled/enabled at run-time
1548
1549 commit 45976af820fc41099928df71ea8304c56eb9fc7c
1550 Author: Keith Packard <keithp@keithp.com>
1551 Date:   Sat Apr 25 13:16:27 2009 -0700
1552
1553     Make LED usage depend on target device
1554
1555 commit 4a050704ad2c497e9f1b0988334228b0bbc4c170
1556 Author: Keith Packard <keithp@keithp.com>
1557 Date:   Sat Apr 25 13:13:24 2009 -0700
1558
1559     Make some functions reentrant to save DSEG space
1560
1561 commit 6b3d25a6d6d7847765eb03b836913dd5ecef2993
1562 Author: Keith Packard <keithp@keithp.com>
1563 Date:   Fri Apr 24 19:17:37 2009 -0700
1564
1565     Add monitor task to flight software
1566     
1567     Allows the use of telemetrum in teledongle mode.
1568
1569 commit ad0d2d88a91cbd02c56ea5ff6dab23e16aec6510
1570 Author: Keith Packard <keithp@keithp.com>
1571 Date:   Fri Apr 24 19:17:19 2009 -0700
1572
1573     Report difference from ground to max altitude at landing
1574
1575 commit f94ab879ff6f97708827c74facd11003a2d8b590
1576 Author: Keith Packard <keithp@keithp.com>
1577 Date:   Fri Apr 24 19:16:29 2009 -0700
1578
1579     Display data with units while running simulation
1580
1581 commit 6fb26340b150e831a8a9e25e3b68074c29e48dbe
1582 Author: Keith Packard <keithp@keithp.com>
1583 Date:   Fri Apr 24 19:13:31 2009 -0700
1584
1585     Enabling apogee detect via speed: < 200m/s && < max_speed - 50m/s
1586     
1587     This change ensures that we actually got going fairly fast, and then slowed
1588     down a bunch before enabling apogee detect. Otherwise, we'll detect apogee
1589     right off the pad as we're not going very fast at that point...
1590     
1591     This also adds the 'f' command to show the current flight status on the USB
1592     port.
1593
1594 commit 20b9f304ecbddd73a0ee2461b4c5e80f08157f98
1595 Author: Keith Packard <keithp@keithp.com>
1596 Date:   Fri Apr 24 19:12:28 2009 -0700
1597
1598     configure igniter ports, set values to measured ones
1599
1600 commit 6bf1d91ce0b723abe2bcec89668c13135ec044cf
1601 Author: Keith Packard <keithp@keithp.com>
1602 Date:   Fri Apr 24 19:11:40 2009 -0700
1603
1604     Move ao_led_init to end of file to be consistent with other files
1605
1606 commit b4de7d550ec9a09ccf5f6a72debc6646706e3516
1607 Author: Keith Packard <keithp@keithp.com>
1608 Date:   Fri Apr 24 19:10:20 2009 -0700
1609
1610     Define ao_state_names in ao.h so other people can share
1611
1612 commit 8e62747b3692d0ac75b08eaf5c3e4b5d766be6ad
1613 Author: Keith Packard <keithp@keithp.com>
1614 Date:   Fri Apr 24 19:09:31 2009 -0700
1615
1616     Bump NUM_CMDS to 10
1617
1618 commit 2f781beb73ef24ab5fbe2688a83d07ad26c15972
1619 Author: Keith Packard <keithp@keithp.com>
1620 Date:   Fri Apr 24 19:09:09 2009 -0700
1621
1622     Move beep_init to end of file to be consistent with other files
1623
1624 commit b99315cee4ab796376458a2442cf36806fa4aed3
1625 Author: Keith Packard <keithp@keithp.com>
1626 Date:   Fri Apr 24 10:19:31 2009 -0700
1627
1628     Update flight algorithm based on data collected from SN-1 Flight 1
1629     
1630     This now correctly sequences through the flight data collected from the
1631     first TeleMetrum test flight.
1632     
1633     This also completes up the flight algorithm test harness (ao_flight_test),
1634     which runs the flight algorithm on the Linux host from a captured data log.
1635
1636 commit b32f2f0090ff967edac07ae4d7a9895ed0b96d31
1637 Author: Keith Packard <keithp@keithp.com>
1638 Date:   Thu Apr 23 22:17:44 2009 -0700
1639
1640     Add igniters and update flight control algorithm
1641
1642 commit f155333ae18a25068644792e8940269d9fb28033
1643 Author: Keith Packard <keithp@keithp.com>
1644 Date:   Fri Apr 24 00:15:09 2009 -0700
1645
1646     Avoid ram from 0xfda2 through feff, its funky
1647
1648 commit f9c1c545c9dc11c3190a6cf7504883131fffce2f
1649 Author: Keith Packard <keithp@keithp.com>
1650 Date:   Thu Apr 23 22:18:33 2009 -0700
1651
1652     remove ao_flight_test until its ready
1653
1654 commit 86e73c009f78dc4664883353124fc891fbb01dce
1655 Author: Keith Packard <keithp@keithp.com>
1656 Date:   Thu Apr 23 20:50:07 2009 -0700
1657
1658     Add teledongle module
1659
1660 commit 204daac71ad56926730f5d6860bd70c645302e19
1661 Author: Keith Packard <keithp@keithp.com>
1662 Date:   Thu Apr 23 14:26:01 2009 -0700
1663
1664     Set telemetry rate to 100ms
1665
1666 commit 306b28f632e21b42ab165e7944283cf9764b590e
1667 Author: Keith Packard <keithp@keithp.com>
1668 Date:   Thu Apr 23 14:23:26 2009 -0700
1669
1670     Wrong license on ao_monitor.c
1671
1672 commit dca3a6de26d26c0020f3fb2cf5d8ac1552c195b1
1673 Author: Keith Packard <keithp@keithp.com>
1674 Date:   Thu Apr 23 14:23:00 2009 -0700
1675
1676     Crank up radio to 10dBm
1677
1678 commit fbe3096f7e9a8112dbc79f376eccdaa6872ae520
1679 Author: Keith Packard <keithp@keithp.com>
1680 Date:   Wed Apr 22 16:03:28 2009 -0700
1681
1682     Add COPYING file
1683
1684 commit 9b7788f18bbaf3c4e5ebbf6c5ebd926468b0e045
1685 Author: Keith Packard <keithp@keithp.com>
1686 Date:   Wed Apr 22 15:55:01 2009 -0700
1687
1688     Clean up TeleTerra files
1689
1690 commit 61cee50c86e275f9fde875bd317c3e74255394ec
1691 Author: Keith Packard <keithp@keithp.com>
1692 Date:   Wed Apr 22 15:53:55 2009 -0700
1693
1694     simplify ao_time function
1695
1696 commit 3703ecdc9e190f2e0b7ead0e71b78be881c1f3b7
1697 Author: Keith Packard <keithp@keithp.com>
1698 Date:   Wed Apr 22 15:53:46 2009 -0700
1699
1700     One line radio status
1701
1702 commit 1fbb3c17672a03ea6318fee07f9c2dcd7a8d0b16
1703 Author: Keith Packard <keithp@keithp.com>
1704 Date:   Wed Apr 22 15:49:16 2009 -0700
1705
1706     Add new binaries to .gitignore
1707
1708 commit 00d5610caff61559eb24c24beaa56629d6bb03be
1709 Author: Keith Packard <keithp@keithp.com>
1710 Date:   Wed Apr 22 15:49:00 2009 -0700
1711
1712     Speed up dbg port bit frobbing
1713
1714 commit c7555eb16876aa8ff9fe7f648d325a1b8fb54d23
1715 Author: Keith Packard <keithp@keithp.com>
1716 Date:   Wed Apr 22 15:48:28 2009 -0700
1717
1718     Use sdcc from path
1719
1720 commit ada6dea04b94be016598566c4c13e6105aaec353
1721 Author: Keith Packard <keithp@keithp.com>
1722 Date:   Wed Apr 22 15:48:14 2009 -0700
1723
1724     Clean up task list formatting
1725
1726 commit 0a1b2297ee9f5bbb918bd72f26088a3e0b84839a
1727 Author: Keith Packard <keithp@keithp.com>
1728 Date:   Wed Apr 22 15:47:57 2009 -0700
1729
1730     Control radio monitoring with the M command
1731
1732 commit 837c620f07b63efc171be3ac14c78bc99adf7592
1733 Author: Keith Packard <keithp@keithp.com>
1734 Date:   Wed Apr 22 14:25:43 2009 -0700
1735
1736     Shrink USB output buffers, work around USB packet errors
1737
1738 commit d87e9c25947d7cc2eba8894a524977f2c55a089a
1739 Author: Keith Packard <keithp@keithp.com>
1740 Date:   Tue Apr 21 02:07:24 2009 -0700
1741
1742     Clean up telemetry now that all packets are the same
1743
1744 commit 1b333def5052d2ed47fdeaef23a897fe326f6340
1745 Author: Keith Packard <keithp@keithp.com>
1746 Date:   Tue Apr 21 02:07:08 2009 -0700
1747
1748     Add longer debug delays to reset/debug_mode entry
1749
1750 commit d1887ded41a5bfec8e10e9fd736fa9444b9b6222
1751 Author: Keith Packard <keithp@keithp.com>
1752 Date:   Tue Apr 21 01:17:03 2009 -0700
1753
1754     Fix up fancy dbg stuff. Add teleterra initial bits.
1755     
1756     The dbg stuff needed a bit of help to actually walk the tables; it appears
1757     that complex expressions confuse sdcc.
1758     
1759     This also adds primitive teleterra bits, but no UI, etc.
1760     
1761     Signed-off-by: Keith Packard <keithp@keithp.com>
1762
1763 commit 43c8f7012102cdb591ace899420c10e4a78385ad
1764 Author: Keith Packard <keithp@keithp.com>
1765 Date:   Mon Apr 20 23:33:41 2009 -0700
1766
1767     Add radio support. Build separate executables for TeleMetrum and the TI dongle
1768     
1769     Ok, way too big a patch, but things were in rough shape.
1770     This patch adds support for the radio, both transmit and receive.
1771     Then, because I could no longer run the TeleMetrum code on the TI
1772     dongle, I ended up building a separate image for the TI board, which
1773     involved creating a mechanism for having multiple command sets and splitting
1774     code for different functions into different files.
1775
1776 commit 5be13b76a2e29b84cd6d1eec065e3354b0dafce5
1777 Author: Keith Packard <keithp@keithp.com>
1778 Date:   Sat Apr 18 23:19:24 2009 -0700
1779
1780     Start using pdata area for less-frequently used data
1781
1782 commit 3e18b5a0d4c7d84df98b6ed0b7783de1d42d45bf
1783 Author: Keith Packard <keithp@keithp.com>
1784 Date:   Sat Apr 18 23:19:05 2009 -0700
1785
1786     Slow down panic presentation
1787
1788 commit c4e983daa4579896b227fdcb2be43fad75e94307
1789 Author: Keith Packard <keithp@keithp.com>
1790 Date:   Sat Apr 18 23:17:45 2009 -0700
1791
1792     Parse GPS data locally. Add 'g' command to display recent GPS results.
1793     
1794     This parses the GPS GGA message and stores it in a global variable,
1795     protected by a mutex.
1796
1797 commit ed6f67dc47d750d5ff8bea63ae7cbb560689b9b6
1798 Author: Keith Packard <keithp@keithp.com>
1799 Date:   Sat Apr 18 23:16:01 2009 -0700
1800
1801     Add task names and 'T' command to show task status.
1802     
1803     The T command shows the current wchan and PC for each task in the system.
1804
1805 commit 3d5a5fc4db5f681e848202c4ee4099d2879677d6
1806 Author: Keith Packard <keithp@keithp.com>
1807 Date:   Sat Apr 18 19:32:18 2009 -0700
1808
1809     Fix GPL version at 2
1810     
1811     Signed-off-by: Keith Packard <keithp@keithp.com>
1812
1813 commit 022f83ca6fd589005d8eb3e25e633950fef69fa7
1814 Author: Keith Packard <keithp@keithp.com>
1815 Date:   Fri Apr 17 23:38:14 2009 -0700
1816
1817     Add gps, debug dongle support and pressure alt tables
1818     
1819     GPS also pulled in serial support. The altitude tables take raw 11-bit
1820     pressure sample numbers and convert them to standard pressure altitude
1821     values.
1822     
1823     Signed-off-by: Keith Packard <keithp@keithp.com>
1824
1825 commit 31fce622b1bab7e3f421069d7f6d4d9bdcd825de
1826 Author: Keith Packard <keithp@keithp.com>
1827 Date:   Fri Apr 17 10:32:45 2009 -0700
1828
1829     Enable FEC in radio packets
1830
1831 commit 293a357911090a2f37bdd6f7ea96942079ffdf2e
1832 Author: Keith Packard <keithp@keithp.com>
1833 Date:   Fri Apr 17 10:29:42 2009 -0700
1834
1835     Add CRC to radio packets
1836
1837 commit 20834caf01ddf481e8362b0d2627ef383a82e09d
1838 Author: Keith Packard <keithp@keithp.com>
1839 Date:   Fri Apr 17 10:23:10 2009 -0700
1840
1841     Add data whitening
1842
1843 commit 94e5343a72121a81ab19bf5025e6b6fc9847eb4f
1844 Author: Keith Packard <keithp@keithp.com>
1845 Date:   Fri Apr 17 10:19:25 2009 -0700
1846
1847     Add packet status byte defines
1848
1849 commit 04bc51c170c6f22bb5cc16867ce9a307818a7a00
1850 Author: Keith Packard <keithp@keithp.com>
1851 Date:   Fri Apr 17 10:11:31 2009 -0700
1852
1853     Add separate xmit/recv programs to radio demo
1854
1855 commit fafe55c3405964e0defdf25b6c00236f9aaefbc5
1856 Author: Keith Packard <keithp@keithp.com>
1857 Date:   Fri Apr 17 10:11:11 2009 -0700
1858
1859     Get env var for debug method selection
1860
1861 commit 26095fc0511ee0d5213f038986032f7c59964cf0
1862 Author: Keith Packard <keithp@keithp.com>
1863 Date:   Fri Apr 17 10:10:47 2009 -0700
1864
1865     Run-time selection between cp2103 and cc1111
1866
1867 commit 543bedde83cbce5145668e72965e02d892187b59
1868 Author: Keith Packard <keithp@keithp.com>
1869 Date:   Thu Apr 16 20:38:14 2009 -0700
1870
1871     Send data
1872
1873 commit 5e2393eb6b1a6d7b180bd63d5165ee7b7ff5f9e0
1874 Author: Keith Packard <keithp@keithp.com>
1875 Date:   Wed Apr 15 14:25:26 2009 -0700
1876
1877     Move a bunch of variables from __data to __xdata
1878
1879 commit 4d1091d9bd121f05f5fe0a9c9d2bc0da8c562b9a
1880 Author: Keith Packard <keithp@keithp.com>
1881 Date:   Tue Apr 14 21:25:15 2009 -0700
1882
1883     Slow down panic code, disable interrupts
1884
1885 commit 545478dd02eaeff6a65d318e722b1e4fce5e01b4
1886 Author: Keith Packard <keithp@keithp.com>
1887 Date:   Tue Apr 14 21:24:25 2009 -0700
1888
1889     Keep reporting flight state while it changes
1890
1891 commit 9605045164882b4ca3d1317ac860b02513a51f30
1892 Author: Keith Packard <keithp@keithp.com>
1893 Date:   Tue Apr 14 21:23:55 2009 -0700
1894
1895     use red LED to indicate system startup
1896
1897 commit dc844ee7e49a3b6145b3165252a592ed070d600f
1898 Author: Keith Packard <keithp@keithp.com>
1899 Date:   Tue Apr 14 21:23:13 2009 -0700
1900
1901     Use ao_ee_flush_internal while holding mutex
1902
1903 commit 5e45d1c89b00e74d5b2730345843f43aab516af2
1904 Author: Keith Packard <keithp@keithp.com>
1905 Date:   Tue Apr 14 21:22:56 2009 -0700
1906
1907     Leave beeping and lights to the flight code
1908
1909 commit 902c342289c1d13a4d55b9224acb6d67578b7a60
1910 Author: Keith Packard <keithp@keithp.com>
1911 Date:   Tue Apr 14 21:22:31 2009 -0700
1912
1913     Make mutex functions reentrant
1914
1915 commit acc4fc635edb70ec1ba2dff9f7ac0c8542c72c47
1916 Author: Keith Packard <keithp@keithp.com>
1917 Date:   Tue Apr 14 19:08:01 2009 -0700
1918
1919     Add in existing flight pieces: flight/report/log
1920     
1921     These pieces come from the old telemetrum firmware.
1922     
1923     Signed-off-by: Keith Packard <keithp@keithp.com>
1924
1925 commit ac99982b10fd5772218660137ee21db9b90cd885
1926 Author: Keith Packard <keithp@keithp.com>
1927 Date:   Tue Apr 14 14:21:56 2009 -0700
1928
1929     Add eeprom driver and command loop
1930     
1931     This involved adding dma control and a mutex implementation.
1932     
1933     Signed-off-by: Keith Packard <keithp@keithp.com>
1934
1935 commit fbd8f4aff5058f4d371596b04715b7cb6d38e729
1936 Author: Keith Packard <keithp@keithp.com>
1937 Date:   Tue Apr 14 11:04:09 2009 -0700
1938
1939     Switch from --model-large to --model-small
1940     
1941     This shrinks the application quite a bit, and should make it faster as well.
1942     
1943     Signed-off-by: Keith Packard <keithp@keithp.com>
1944
1945 commit fb63262699d3a6fbf347d24efda8b01f75b7d0d3
1946 Author: Keith Packard <keithp@keithp.com>
1947 Date:   Tue Apr 14 10:02:19 2009 -0700
1948
1949     Add comments, clean up white space, etc.
1950     
1951     Various clean ups now that the basic code appears to work.
1952     
1953     Signed-off-by: Keith Packard <keithp@keithp.com>
1954
1955 commit 7e4abf3a40c39d0ce4f466281bef9a464df85dd4
1956 Author: Keith Packard <keithp@keithp.com>
1957 Date:   Mon Apr 13 21:58:07 2009 -0700
1958
1959     Switch USB to double-buffered
1960
1961 commit b56a44e48552bc32dbba9ff21770c370219a684a
1962 Author: Keith Packard <keithp@keithp.com>
1963 Date:   Mon Apr 13 21:51:59 2009 -0700
1964
1965     Fix USB input/output by reloading packet limits.
1966     
1967     The USB controller is reset during the connection process, which clears the
1968     packet limits set in the controller at initialization time. Reload those
1969     values when the configuration is set.
1970     
1971     Signed-off-by: Keith Packard <keithp@keithp.com>
1972
1973 commit cdaf3fc5802acf2ddc7972a15649ab0e1b31b873
1974 Author: Keith Packard <keithp@keithp.com>
1975 Date:   Mon Apr 13 20:39:46 2009 -0700
1976
1977     USB working up through reading strings
1978
1979 commit c5c1e3fb1c253d387be02c127253ac2a55d577b4
1980 Author: Keith Packard <keithp@keithp.com>
1981 Date:   Mon Apr 13 13:51:08 2009 -0700
1982
1983     Add USB support.
1984     
1985     This offers a single CDC ACM device over USB.
1986     
1987     Signed-off-by: Keith Packard <keithp@keithp.com>
1988
1989 commit f3f25a1cec7d2a034aa544569cfd23bea1a996c5
1990 Author: Keith Packard <keithp@keithp.com>
1991 Date:   Sun Apr 12 23:53:55 2009 -0700
1992
1993     Add beep/led support.
1994     
1995     Support our P2_0 connected buzzer, and formalize LED output support.
1996     
1997     Signed-off-by: Keith Packard <keithp@keithp.com>
1998
1999 commit e14f07bfdb8824fc7ed6df1129c66ee39ffd6d54
2000 Author: Keith Packard <keithp@keithp.com>
2001 Date:   Sun Apr 12 23:17:16 2009 -0700
2002
2003     Add A/D sampler
2004     
2005     Sample A/D at the timer tick, placing data in a ring
2006     of samples.
2007     
2008     Signed-off-by: Keith Packard <keithp@keithp.com>
2009
2010 commit 823f4f92de0c1f8dd7a644a8e56ffe9822bee6e2
2011 Author: Keith Packard <keithp@keithp.com>
2012 Date:   Sun Apr 12 22:52:47 2009 -0700
2013
2014     Add 100Hz timer
2015     
2016     Use Timer 1 to generate a 100Hz timer interrupt
2017
2018 commit 650a77e209dbb54c8d8fd9824cee430985564973
2019 Author: Keith Packard <keithp@keithp.com>
2020 Date:   Sun Apr 12 21:58:49 2009 -0700
2021
2022     Update README
2023
2024 commit 870e98334018a66de8a6e4a659d2dc5dee1cbecf
2025 Author: Keith Packard <keithp@keithp.com>
2026 Date:   Sun Apr 12 21:52:56 2009 -0700
2027
2028     GPL Version 2 only
2029
2030 commit 11c526bdcbf4012e18fbfdc29ca8832870ca38f0
2031 Author: Keith Packard <keithp@keithp.com>
2032 Date:   Sun Apr 12 21:47:32 2009 -0700
2033
2034     Add load command to s51
2035
2036 commit 55402ba3e87fd699c51079843309f1f0d1534724
2037 Author: Keith Packard <keithp@keithp.com>
2038 Date:   Sun Apr 12 21:33:55 2009 -0700
2039
2040     Make test more complicated
2041
2042 commit 3d3f849c9af9028f667cef4afedc0798d39a9efc
2043 Author: Keith Packard <keithp@keithp.com>
2044 Date:   Sun Apr 12 21:33:46 2009 -0700
2045
2046     SP points at last pushed byte
2047
2048 commit f72c4cbc8fd9412dd1cce0fc446e7bbd2edc2d34
2049 Author: Keith Packard <keithp@keithp.com>
2050 Date:   Sun Apr 12 20:27:03 2009 -0700
2051
2052     Add .gitignore
2053
2054 commit 1903a86bf2cc6b685ccc475e62eabe49a4ec5b43
2055 Author: Keith Packard <keithp@keithp.com>
2056 Date:   Sun Apr 12 20:25:39 2009 -0700
2057
2058     Initial AltOS import
2059
2060 commit 5221dc63cf3a059a32aca2bfa7828c215be814a1
2061 Author: Keith Packard <keithp@keithp.com>
2062 Date:   Sun Apr 12 12:38:58 2009 -0700
2063
2064     Add ccdump
2065
2066 commit ee110425fb814780476d1d3d8a257af126f41763
2067 Author: Keith Packard <keithp@keithp.com>
2068 Date:   Mon Apr 6 17:09:23 2009 -0700
2069
2070     Bump buffer pointer as data is written to cc-usb
2071
2072 commit 2d9b8a83a2d9f495199033e43f519d26f27938fe
2073 Author: Keith Packard <keithp@keithp.com>
2074 Date:   Mon Apr 6 11:31:49 2009 -0700
2075
2076     Add support for a serial-connected custom debug dongle
2077     
2078     This uses the cc1111 board as a custom debug dongle with faster
2079     methods for communicating with the debug target.
2080
2081 commit 24edd56155ed0fa02fdd8f66fdc7aa5a1021bf7d
2082 Author: Keith Packard <keithp@keithp.com>
2083 Date:   Wed Apr 1 17:50:47 2009 -0700
2084
2085     Reset cc1111 on s51 exit
2086
2087 commit 5fcfe854d29e1862d9a6adcbef3ef5119eb52fa3
2088 Author: Keith Packard <keithp@keithp.com>
2089 Date:   Wed Apr 1 00:06:45 2009 -0700
2090
2091     Add timer-based beep test
2092
2093 commit 91607bebdd167ac632aca4b66e22cb0cabdf0d20
2094 Author: Keith Packard <keithp@keithp.com>
2095 Date:   Thu Mar 26 22:41:47 2009 -0700
2096
2097     Add readline support to s51
2098
2099 commit 66ee94ed10e3d79b24f45a5c63e58456d4d30343
2100 Author: Keith Packard <keithp@keithp.com>
2101 Date:   Wed Mar 25 11:37:48 2009 -0700
2102
2103     Deal with MSB-outputing DMA engine
2104
2105 commit d3732fd405af03c3752a84c4b78da7ef5ebd3744
2106 Author: Keith Packard <keithp@keithp.com>
2107 Date:   Wed Mar 25 11:14:03 2009 -0700
2108
2109     Flip ADC bytes around
2110
2111 commit 50cc8e97e76d9b60c622962e1c74cf422dfb2c0f
2112 Author: Keith Packard <keithp@keithp.com>
2113 Date:   Wed Mar 25 11:01:30 2009 -0700
2114
2115     Add spacing for serial adc data
2116
2117 commit 5577ca3762bfc000b0bc3782c73a8f95996a28a6
2118 Author: Keith Packard <keithp@keithp.com>
2119 Date:   Wed Mar 25 10:58:57 2009 -0700
2120
2121     Inc only one on dest addr
2122
2123 commit 378227d869a3e8787c532c8c4e1563b44002c4b5
2124 Author: Keith Packard <keithp@keithp.com>
2125 Date:   Wed Mar 25 10:55:17 2009 -0700
2126
2127     Dump remaining inputs
2128
2129 commit f54a41e37d6897db2e24fbc82880076b78a0ae41
2130 Author: Keith Packard <keithp@keithp.com>
2131 Date:   Wed Mar 25 10:50:36 2009 -0700
2132
2133     Remove poll for ti demo button
2134
2135 commit 2b93a70fdd9e47e8195855451aa19ecad5d8b068
2136 Author: Keith Packard <keithp@keithp.com>
2137 Date:   Wed Mar 25 10:50:14 2009 -0700
2138
2139     Add adc to serial conversion
2140
2141 commit d9fd548db15232e3a8823815962b252c7a5e7cba
2142 Author: Keith Packard <keithp@keithp.com>
2143 Date:   Wed Mar 25 10:04:50 2009 -0700
2144
2145     Add ADC via DMA example
2146
2147 commit 61faf2b773300988fe27cfde5bc045be9950a1b0
2148 Author: Keith Packard <keithp@keithp.com>
2149 Date:   Wed Mar 25 09:45:14 2009 -0700
2150
2151     Add DMA example
2152
2153 commit 7b3fdf5b42c9be9bebc1ceb7a52ff0f5a2a28fcd
2154 Author: Keith Packard <keithp@keithp.com>
2155 Date:   Wed Mar 25 01:05:36 2009 -0700
2156
2157     Back to 0dBm
2158
2159 commit 31d59b88baa2cd96dc6263d1c5877283f2cd8c36
2160 Author: Keith Packard <keithp@keithp.com>
2161 Date:   Wed Mar 25 01:03:08 2009 -0700
2162
2163     Make radio test compile again
2164
2165 commit 9ce713fdd19bf1a51370dacba3670504356c5c11
2166 Author: Keith Packard <keithp@keithp.com>
2167 Date:   Wed Mar 25 01:02:07 2009 -0700
2168
2169     Wait for xtal to stabilize
2170
2171 commit ffd43886dc902f3bb7407294018e3d62cac39480
2172 Author: Keith Packard <keithp@keithp.com>
2173 Date:   Wed Mar 25 00:55:11 2009 -0700
2174
2175     Check serial input
2176
2177 commit 029963cc94fbb47560118b5de73c537e2c14ed7c
2178 Author: Keith Packard <keithp@keithp.com>
2179 Date:   Wed Mar 25 00:50:02 2009 -0700
2180
2181     Eliminate array walking
2182
2183 commit 019456a17d36f8f9f9b72cfbc980492175086d32
2184 Author: Keith Packard <keithp@keithp.com>
2185 Date:   Wed Mar 25 00:41:49 2009 -0700
2186
2187     Add a per-char delay
2188
2189 commit cfaf187e96ba98eb8dd934409a10bc70273fe68a
2190 Author: Keith Packard <keithp@keithp.com>
2191 Date:   Wed Mar 25 00:36:35 2009 -0700
2192
2193     Use UTX1IF to wait for serial TX complete
2194
2195 commit 006124529b243c7657a94312d2c868a82878d8bb
2196 Author: Keith Packard <keithp@keithp.com>
2197 Date:   Wed Mar 25 00:29:29 2009 -0700
2198
2199     Send more interesting text
2200
2201 commit 5049acd3d1ae42304513f667f55a2ddffa4c685a
2202 Author: Keith Packard <keithp@keithp.com>
2203 Date:   Wed Mar 25 00:24:56 2009 -0700
2204
2205     More random serial bit frobbing
2206
2207 commit 50bdc2407c674a4770912d3a626f36820a7f1527
2208 Author: Keith Packard <keithp@keithp.com>
2209 Date:   Wed Mar 25 00:13:15 2009 -0700
2210
2211     Flip serial TX code around a bit
2212
2213 commit 7b7617e376afe0df1d505375b76198358330370c
2214 Author: Keith Packard <keithp@keithp.com>
2215 Date:   Wed Mar 25 00:09:47 2009 -0700
2216
2217     Try serial polarity high/high
2218
2219 commit 18edacdb1e6e429cc29a164e22ef2a566096b9d9
2220 Author: Keith Packard <keithp@keithp.com>
2221 Date:   Wed Mar 25 00:06:32 2009 -0700
2222
2223     Make serial test simpler
2224
2225 commit 62744c186792739c3bf5798c80ff87c69fbe2b65
2226 Author: Keith Packard <keithp@keithp.com>
2227 Date:   Wed Mar 25 00:03:45 2009 -0700
2228
2229     Flip start/stop bits around
2230
2231 commit 9e96107d5d1a9681b07c36bb5860c748bfe10ec0
2232 Author: Keith Packard <keithp@keithp.com>
2233 Date:   Tue Mar 24 23:57:12 2009 -0700
2234
2235     Stop high
2236
2237 commit c41ceb9a488b2209d1d3c09967d1473ce608030f
2238 Author: Keith Packard <keithp@keithp.com>
2239 Date:   Tue Mar 24 23:24:01 2009 -0700
2240
2241     Change radio to -30dBm
2242
2243 commit c35de083ca3d4f362063b056a0fd74ffe629d168
2244 Author: Keith Packard <keithp@keithp.com>
2245 Date:   Tue Mar 24 23:11:48 2009 -0700
2246
2247     Add serial test program
2248
2249 commit 8ecbd8734f0fb5588b2a8eb20720cfc6f43dfb47
2250 Author: Keith Packard <keithp@keithp.com>
2251 Date:   Tue Mar 24 22:37:38 2009 -0700
2252
2253     Wait for xtal to stabilize after changing to 24MHz
2254
2255 commit e120269fc0f8e14ddf1755337b1d092173e16da2
2256 Author: Keith Packard <keithp@keithp.com>
2257 Date:   Tue Mar 24 22:21:31 2009 -0700
2258
2259     Actually return byte read from SPI
2260
2261 commit de1ac6f99a1526fa840a52cfc10fa3edc0589bed
2262 Author: Keith Packard <keithp@keithp.com>
2263 Date:   Tue Mar 24 22:12:51 2009 -0700
2264
2265     Clear UxCSR_TX_BYTE after transmitting a byte
2266
2267 commit 3ed3ff63e46767a256d30c5da5c52ae20089a91d
2268 Author: Keith Packard <keithp@keithp.com>
2269 Date:   Tue Mar 24 20:04:58 2009 -0700
2270
2271     Led the LED turn on
2272
2273 commit 91b3a6ae74184692f45702587c4d678b2799ad8c
2274 Author: Keith Packard <keithp@keithp.com>
2275 Date:   Tue Mar 24 19:55:04 2009 -0700
2276
2277     actually write and compare SPI test bits
2278
2279 commit 7de3a43887485c3c6cf52960376ccde33fb33985
2280 Author: Keith Packard <keithp@keithp.com>
2281 Date:   Tue Mar 24 19:54:02 2009 -0700
2282
2283     Add USART-based SPI test code
2284
2285 commit ef0eef68280e9b6ca5e3bb71062e23054340e1ed
2286 Author: Keith Packard <keithp@keithp.com>
2287 Date:   Tue Mar 24 17:22:36 2009 -0700
2288
2289     Change spi test string
2290
2291 commit 8131389ee5018c05b721146a98367150cf500fdf
2292 Author: Keith Packard <keithp@keithp.com>
2293 Date:   Tue Mar 24 17:15:09 2009 -0700
2294
2295     Oops, not merging in the bit read for SPI test
2296
2297 commit 3429016d1359ec650993d2fb0596184e3f717871
2298 Author: Keith Packard <keithp@keithp.com>
2299 Date:   Tue Mar 24 17:04:45 2009 -0700
2300
2301     Adjust clock/data phase for spi test
2302
2303 commit fedd18b28ea54e1dabcd2f9e8cab3ae4ee0fd070
2304 Author: Keith Packard <keithp@keithp.com>
2305 Date:   Tue Mar 24 16:35:13 2009 -0700
2306
2307     MISO needs to be an input
2308
2309 commit f0c233f25a208a636833312b1766825815735304
2310 Author: Keith Packard <keithp@keithp.com>
2311 Date:   Tue Mar 24 15:41:55 2009 -0700
2312
2313     Add bit-banging spi eeprom test program
2314
2315 commit 6eeee64cf16ccc9218dbdde5426f25bda5e3407f
2316 Author: Bdale Garbee <bdale@gag.com>
2317 Date:   Wed Mar 18 02:58:33 2009 -0600
2318
2319     working beep at around 4khz
2320
2321 commit 4726317de811c20e8d6754762437b5c9cbb3a48c
2322 Author: Keith Packard <keithp@keithp.com>
2323 Date:   Wed Mar 18 01:54:34 2009 -0700
2324
2325     Add simple test program to light up the transmitter at 434.550MHz
2326     
2327     This starts a transmit sequence, but doesn't send any data so the
2328     transmitter just locks on.
2329
2330 commit a0a27600ee2bf237e74eb83767a8d2e7c91df24f
2331 Author: Keith Packard <keithp@keithp.com>
2332 Date:   Sun Mar 15 18:14:21 2009 -0700
2333
2334     Correctly comment which bit the beep program uses
2335
2336 commit 25b77d236c01258abfc03114c2fc9ea2d69ca6e7
2337 Author: Keith Packard <keithp@keithp.com>
2338 Date:   Sun Mar 15 18:11:53 2009 -0700
2339
2340     Add telemetrum beeper example
2341
2342 commit 164b4e4749ad64ebbe26e84fd7b4fa1aa733dbe4
2343 Author: Keith Packard <keithp@keithp.com>
2344 Date:   Sun Mar 15 18:11:20 2009 -0700
2345
2346     sdcc gets the lib path correct based on the model
2347
2348 commit 04a316133af93b79bfbebb91f05eec1015ec2abc
2349 Author: Keith Packard <keithp@keithp.com>
2350 Date:   Sun Mar 15 18:10:43 2009 -0700
2351
2352     Bump debug speed back up
2353
2354 commit 9fd63972758d6d5572f7bcaadec9b1c0e974a2e8
2355 Author: Keith Packard <keithp@keithp.com>
2356 Date:   Sat Mar 7 21:05:40 2009 -0800
2357
2358     Only flip changing bits in async mode
2359
2360 commit c8fd04e154bcfd65ae1200980bd8163caabd7fe4
2361 Author: Keith Packard <keithp@keithp.com>
2362 Date:   Sat Mar 7 21:05:06 2009 -0800
2363
2364     The debug port only works if reset is higher than clock. weird
2365
2366 commit ade11f88754b4ab0386ebf86afc5257e59238f62
2367 Author: Keith Packard <keithp@keithp.com>
2368 Date:   Sat Mar 7 21:04:38 2009 -0800
2369
2370     Make manual bit flipping sync after every transaction
2371
2372 commit e63b5271bb54afc36e4b9891e51e053ff6011092
2373 Author: Keith Packard <keithp@keithp.com>
2374 Date:   Sat Mar 7 14:49:22 2009 -0800
2375
2376     Add ccmanual
2377
2378 commit 77d754afc2d14aaa4413c13ebe3777ef385f62a9
2379 Author: Keith Packard <keithp@keithp.com>
2380 Date:   Sat Mar 7 14:48:49 2009 -0800
2381
2382     Sync after manual bit reading
2383
2384 commit 5a338c8a7394d003355f96a8777b6fe83bb8493c
2385 Author: Keith Packard <keithp@keithp.com>
2386 Date:   Sat Mar 7 14:48:35 2009 -0800
2387
2388     Flip debug pins around to match telemetrum
2389
2390 commit cc0495b7028f4b1189a00707d828a68534d1dea2
2391 Author: Keith Packard <keithp@keithp.com>
2392 Date:   Fri Mar 6 22:52:35 2009 -0800
2393
2394     Wait for a while when switching the RESET_N line
2395     
2396     The cc1111 manual suggests placing a 2.7kΩ resister and 1nF capacitor on the
2397     RESET_N line to filter out noise. This increases the time necessary to reset
2398     the chip to several microseconds which is longer than the interval between
2399     two USB packets. Flush the USB packet queue and sleep for a while after
2400     changing the value on the RESET_N line to make sure the chip sees the state
2401     change.
2402     
2403     Signed-off-by: Keith Packard <keithp@keithp.com>
2404
2405 commit 41289e6d8f1767547a33fea349866e928e44910f
2406 Author: Bdale Garbee <bdale@gag.com>
2407 Date:   Mon Mar 2 07:46:20 2009 -0700
2408
2409     minor s51.1 formatting fixes
2410     
2411     Signed-off-by: Keith Packard <keithp@keithp.com>
2412
2413 commit fdee231ed097a4348aee78fbd4aa92826b80de03
2414 Author: Keith Packard <keithp@keithp.com>
2415 Date:   Sun Mar 1 23:12:31 2009 -0800
2416
2417     Add s51 manual.
2418     
2419     This documents (briefly) the s51 hex debugging interface program, including
2420     some simple commands to test the operation of the system interactively.
2421     
2422     Signed-off-by: Keith Packard <keithp@keithp.com>
2423
2424 commit f7d91bd23b8214e09deae0aafb516331e934c49b
2425 Author: Keith Packard <keithp@keithp.com>
2426 Date:   Sun Mar 1 18:43:03 2009 -0800
2427
2428     Sometimes the link breaks and the GET_PC command returns garbage
2429
2430 commit 3cc8d11eb8d5d0b42141dd84a58d461287f59e3a
2431 Author: Keith Packard <keithp@keithp.com>
2432 Date:   Sun Jan 25 08:38:48 2009 -0800
2433
2434     Support 'set' command
2435     
2436     The 'set' command modifies target memory and registers
2437     
2438     Signed-off-by: Keith Packard <keithp@keithp.com>
2439
2440 commit 60940b4be23962db79b8e914ec943d0636dd68ad
2441 Author: Keith Packard <keithp@keithp.com>
2442 Date:   Mon Jan 5 21:45:21 2009 -0800
2443
2444     Expose ccdbg_set_clock API
2445     
2446     This allows applications to change the debug port clock
2447     rate on the fly.
2448     
2449     Signed-off-by: Keith Packard <keithp@keithp.com>
2450
2451 commit eb09e61b0682eb2aeac8e1a34d58b897ba6db8e7
2452 Author: Keith Packard <keithp@keithp.com>
2453 Date:   Mon Jan 5 21:44:44 2009 -0800
2454
2455     Use custom sdcc libraries (this needs to be configured...)
2456     
2457     Signed-off-by: Keith Packard <keithp@keithp.com>
2458
2459 commit 1ccfe0887c794397131ab1c986c25f66eea86a6c
2460 Author: Keith Packard <keithp@keithp.com>
2461 Date:   Mon Jan 5 21:43:44 2009 -0800
2462
2463     Have S51 ignore SIGINT while running under sdcdb.
2464     
2465     This prevents keyboard interrupts from accidentally stopping
2466     s51.
2467     
2468     Signed-off-by: Keith Packard <keithp@keithp.com>
2469
2470 commit 7c03937b36aac82b08f4ea0c6da33a994fe15ec7
2471 Author: Keith Packard <keithp@keithp.com>
2472 Date:   Tue Dec 30 22:40:13 2008 -0800
2473
2474     Add simple and timer sample programs
2475     
2476     Signed-off-by: Keith Packard <keithp@keithp.com>
2477
2478 commit 6c2a65c743a4ffae96ed27dbc38c1bf9242ed1df
2479 Author: Keith Packard <keithp@keithp.com>
2480 Date:   Tue Dec 30 22:35:53 2008 -0800
2481
2482     Save/restore registers to host during memory operations. Cache ROM data.
2483     
2484     Because the debug port uses instructions for most operations, the debug code
2485     will clobber registers used by the running program. Save and restore these
2486     to avoid corrupting application data.
2487     
2488     If the ROM file is known, use that to return data instead of fetching it
2489     from the target to improve performance.
2490     
2491     Signed-off-by: Keith Packard <keithp@keithp.com>
2492
2493 commit ea366058aa467a8a7caf17e7014758f3741ea7f7
2494 Author: Keith Packard <keithp@keithp.com>
2495 Date:   Mon Dec 29 12:35:11 2008 -0800
2496
2497     Fix flashing less than a full page of data. Verify page at a time.
2498     
2499     The 8051 flashing code requires special help with counts with non-zero low
2500     byte. Also, instead of verifying the entire flash contents at the end,
2501     verify each page as it goes.
2502     
2503     Signed-off-by: Keith Packard <keithp@keithp.com>
2504
2505 commit e0697186a2f9b6139636ff5d5c162879c85caf9c
2506 Author: Keith Packard <keithp@keithp.com>
2507 Date:   Sun Dec 28 00:11:13 2008 -0800
2508
2509     Use SFR access funcs. Support 'dump' command. Add -m (monitor) flag.
2510     
2511     Not all SFRs are visible in the unified address space, so the SFR-specific
2512     accessors are required.
2513     
2514     The dump command is the same as the various 'd*'
2515     commands, but also supports dumping program memory.
2516     
2517     The new -m (monitor) flag watches the command stream between s51 and sdcdb.
2518     
2519     Signed-off-by: Keith Packard <keithp@keithp.com>
2520
2521 commit 23aca1fcbc169184e32d4ec19f28dd4fd4cfda36
2522 Author: Keith Packard <keithp@keithp.com>
2523 Date:   Sun Dec 28 00:09:30 2008 -0800
2524
2525     Save/restore regs when reading/writing memory. Add SFR access.
2526     
2527     The DPL and ACC registers are used by the memory access code,
2528     so they need to be saved and restored. Stuff them up high in ram for now;
2529     this should probably be fixed to pull them back to the host instead.
2530     
2531     Special SFR access is required as not all SFRs are visible in the unified
2532     address space.
2533     
2534     Signed-off-by: Keith Packard <keithp@keithp.com>
2535
2536 commit 1405838160b69e2cda456e21502a1d03b3aa7548
2537 Author: Keith Packard <keithp@keithp.com>
2538 Date:   Sat Dec 27 11:25:58 2008 -0800
2539
2540     s51: get start address from ihx file. re-enable breakpoints after reset.
2541     
2542     Use the start of the ihx file when asked to run from 0x0, this lets
2543     sdcdb run programs from ram.
2544     
2545     The reset command clears all hw breakpoints, so reset them afterwards.
2546     
2547     Signed-off-by: Keith Packard <keithp@keithp.com>
2548
2549 commit 1264c3676e95427bba5d01e05c303d036a7f9eca
2550 Author: Keith Packard <keithp@keithp.com>
2551 Date:   Fri Dec 26 23:05:04 2008 -0800
2552
2553     Switch to libusb-1.0 and use async interface.
2554     
2555     The async libusb interface offers substantial performance benefits by not
2556     making each command wait for the reply. This makes talking over this
2557     interface almost reasonable.
2558     
2559     Signed-off-by: Keith Packard <keithp@keithp.com>
2560
2561 commit d2d9cfd74fd66836c913c02276e09136d83b35dc
2562 Author: Keith Packard <keithp@keithp.com>
2563 Date:   Fri Dec 26 17:58:48 2008 -0800
2564
2565     s51: add breakpoints and the ability to block awaiting a breakpoint.
2566     
2567     Signed-off-by: Keith Packard <keithp@keithp.com>
2568
2569 commit 4c4093c3fdd309123fdd068c0e1ff4947104492d
2570 Author: Keith Packard <keithp@keithp.com>
2571 Date:   Mon Dec 22 19:11:56 2008 -0800
2572
2573     Add more commands to s51 assembly-language debugger
2574     
2575     Signed-off-by: Keith Packard <keithp@keithp.com>
2576
2577 commit 55eba4fa08b022197106245d36a70f575a070b0a
2578 Author: Keith Packard <keithp@keithp.com>
2579 Date:   Mon Dec 22 19:10:27 2008 -0800
2580
2581     Make read_memory debug output use ccdbg_debug.
2582     
2583     This makes it default to not being presented, which makes s51 much happier
2584     
2585     Signed-off-by: Keith Packard <keithp@keithp.com>
2586
2587 commit e75918f3667a5c8ad294bec4acef6fe81682edf6
2588 Author: Keith Packard <keithp@keithp.com>
2589 Date:   Sun Dec 21 23:33:35 2008 -0800
2590
2591     Add preliminary version of s51, a UI clone of the 8051 emulator.
2592     
2593     sdcdb provides source-level debugging using the 8051 emulator, s51. By
2594     emulating that emulator a the UI level, we should be able to get source
2595     debugging right on our target platform.
2596     
2597     This is just the preliminary structure for the program with most commands
2598     not yet implemented.
2599
2600 commit f7d49868aeae80d515b12a7e339628f1296754a6
2601 Author: Keith Packard <keithp@keithp.com>
2602 Date:   Sat Dec 20 23:30:06 2008 -0800
2603
2604     Cleanup work; separating out the cp interface to be more abstract.
2605     
2606     Signed-off-by: Keith Packard <keithp@keithp.com>
2607
2608 commit 30f23f23a6db3d12fdc9c088cf6ab47c5e5077fb
2609 Author: Keith Packard <keithp@keithp.com>
2610 Date:   Fri Dec 19 21:13:04 2008 -0800
2611
2612     Clean up autotools stuff.
2613     
2614     Signed-off-by: Keith Packard <keithp@keithp.com>
2615
2616 commit 9025eb792861930e6af918d2727c4f5d97a69936
2617 Author: Keith Packard <keithp@keithp.com>
2618 Date:   Fri Dec 19 21:11:45 2008 -0800
2619
2620     Autotools.
2621     
2622     Signed-off-by: Keith Packard <keithp@keithp.com>
2623
2624 commit ab909db28307cfbf7ee8d692506bb79d7ffd627a
2625 Author: Keith Packard <keithp@keithp.com>
2626 Date:   Fri Dec 19 19:08:13 2008 -0800
2627
2628     Ignore .ihx files
2629
2630 commit cc8db276bc4f2fd7eb00168a5c0689a8457a5c6f
2631 Author: Keith Packard <keithp@keithp.com>
2632 Date:   Fri Dec 19 19:07:37 2008 -0800
2633
2634     Move blink example to subdir
2635     
2636     Signed-off-by: Keith Packard <keithp@keithp.com>
2637
2638 commit 82e2d7ebed6682062dc400478c736bd6c91195c9
2639 Author: Keith Packard <keithp@keithp.com>
2640 Date:   Fri Dec 19 19:04:26 2008 -0800
2641
2642     Clean up makefiles, move ihx files to .ihx
2643
2644 commit 52fb5f795adfd7f62e5b6dbe65877d14361cfdae
2645 Author: Keith Packard <keithp@keithp.com>
2646 Date:   Fri Dec 19 14:39:57 2008 -0800
2647
2648     ignore more stuff
2649
2650 commit 4ecfc33f16aa36b315519e6f279da65374b67aba
2651 Author: Keith Packard <keithp@keithp.com>
2652 Date:   Fri Dec 19 14:37:53 2008 -0800
2653
2654     Add cc1111 isr stub example
2655
2656 commit d32e6658c3e489b62ba3cf6d22e3ab177b9b8a3a
2657 Author: Keith Packard <keithp@keithp.com>
2658 Date:   Fri Dec 19 14:37:29 2008 -0800
2659
2660     Add blink-tiny flash and ram versions
2661
2662 commit b4d1127ef007843c643b778b3b2f6b915b1d5d9a
2663 Author: Keith Packard <keithp@keithp.com>
2664 Date:   Fri Dec 19 14:19:29 2008 -0800
2665
2666     Flash multiple pages. Eliminate off-by-one error in hex_image length.
2667     
2668     Signed-off-by: Keith Packard <keithp@keithp.com>
2669
2670 commit 55995515b9d4fc1e193039eab697c5d03db417c2
2671 Author: Keith Packard <keithp@keithp.com>
2672 Date:   Fri Dec 19 11:04:16 2008 -0800
2673
2674     Add flash writing code.
2675     
2676     Signed-off-by: Keith Packard <keithp@keithp.com>
2677
2678 commit 0bc52385b8f86f9ca1c450ad106e6d8afe3bc153
2679 Author: Keith Packard <keithp@keithp.com>
2680 Date:   Thu Dec 18 12:37:32 2008 -0800
2681
2682     faster
2683     
2684     Signed-off-by: Keith Packard <keithp@keithp.com>
2685
2686 commit 3779cc8b32cac3640f42bd0400d4199ddae965a1
2687 Author: Keith Packard <keithp@keithp.com>
2688 Date:   Thu Dec 18 12:17:41 2008 -0800
2689
2690     cq
2691     
2692     Signed-off-by: Keith Packard <keithp@keithp.com>
2693
2694 commit dc03adc179669d41e3551d74b3c5a60db41ff217
2695 Author: Keith Packard <keithp@keithp.com>
2696 Date:   Thu Dec 18 12:07:06 2008 -0800
2697
2698     Add ability to load Intel HEX files. Add sample sdcc LED blinker.
2699     
2700     Signed-off-by: Keith Packard <keithp@keithp.com>
2701
2702 commit 807e2adacb025af77bb53c03209e9c8e0d7a5f95
2703 Author: Keith Packard <keithp@keithp.com>
2704 Date:   Thu Dec 18 00:18:50 2008 -0800
2705
2706     Add ability to read/write arbitrary memory. Write LED blinker program.
2707     
2708     Signed-off-by: Keith Packard <keithp@keithp.com>
2709
2710 commit 8c879bf51c14a5928135d59211facd72f6a32808
2711 Author: Keith Packard <keithp@keithp.com>
2712 Date:   Wed Dec 17 23:15:47 2008 -0800
2713
2714     Move manual bit-banging debug code to separate file
2715     
2716     Signed-off-by: Keith Packard <keithp@keithp.com>
2717
2718 commit aec3bbce84a5ceb92060a4b3889379f2af2404ac
2719 Author: Keith Packard <keithp@keithp.com>
2720 Date:   Wed Dec 17 23:15:19 2008 -0800
2721
2722     reduce clock to 50us
2723     
2724     Signed-off-by: Keith Packard <keithp@keithp.com>
2725
2726 commit fa168f963f8b00144d12aa2770e9c0917cfae123
2727 Author: Keith Packard <keithp@keithp.com>
2728 Date:   Wed Dec 17 23:12:59 2008 -0800
2729
2730     Fill out ccdbg-command to support all debug commands.
2731     
2732     Signed-off-by: Keith Packard <keithp@keithp.com>
2733
2734 commit 5df84df7cd6a31527dcfd11030f00ef9d8abf170
2735 Author: Keith Packard <keithp@keithp.com>
2736 Date:   Wed Dec 17 22:24:59 2008 -0800
2737
2738     Clean up bitbanging layer. Add debug printfs.
2739     
2740     Signed-off-by: Keith Packard <keithp@keithp.com>
2741
2742 commit 584e28bac8af38de433767e017977ed1adddeb36
2743 Author: Keith Packard <keithp@keithp.com>
2744 Date:   Wed Dec 17 12:32:15 2008 -0800
2745
2746     Clean up sample debug files
2747     
2748     Signed-off-by: Keith Packard <keithp@keithp.com>
2749
2750 commit e64b4dbf15e9ee1cb0de002985de7575e83d46e9
2751 Author: Keith Packard <keithp@keithp.com>
2752 Date:   Mon Dec 8 17:25:28 2008 -0800
2753
2754     Add support for input-only lines (-)
2755
2756 commit 4f38974a9941cddaba27c17c5a46f923db386c94
2757 Author: Keith Packard <keithp@keithp.com>
2758 Date:   Sat Dec 6 16:32:27 2008 -0800
2759
2760     Add another example
2761
2762 commit 3709ec3205cfb152b6568f3ea505c67fe7504c2a
2763 Author: Keith Packard <keithp@keithp.com>
2764 Date:   Sat Dec 6 16:32:12 2008 -0800
2765
2766     Add libusb support and lots more examples
2767
2768 commit 39801e6e9fb9388072ee414a447f74095a6ac960
2769 Author: Keith Packard <keithp@keithp.com>
2770 Date:   Fri Nov 28 22:57:07 2008 -0800
2771
2772     Random hacking
2773
2774 commit 01cb2799875e086ee6096627c058ee235bbc33d5
2775 Author: Keith Packard <keithp@keithp.com>
2776 Date:   Thu Nov 27 17:07:15 2008 -0800
2777
2778     Add prototypes, add stub mainline, add .gitignore
2779
2780 commit 0ffe4ef870b0e564789a1990aeab5b6651868e5b
2781 Author: Keith Packard <keithp@keithp.com>
2782 Date:   Thu Nov 27 12:33:40 2008 -0800
2783
2784     cc1111 debug port access through cp2103 serial chip