1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-29 09:20:18 +02:00
Commit Graph

35 Commits

Author SHA1 Message Date
Werner Almesberger
2dc2fb278c tornado/fw/tornado.c: update signal processing from sim/alg.c 2012-12-15 04:53:57 -03:00
Werner Almesberger
45f14d214a tornado/fw/tornado.c: experimental code to log ADC samples to memory card
For a yet unknown reason, writing to the card fails if also processing
the samples. Maybe it's some side-effect of switching the LEDs.
2012-12-09 17:28:19 -03:00
Werner Almesberger
2c7d7b78b0 tornado/fw/sim/alg.c: dampen more, to also absorb chain jumps 2012-12-09 17:27:14 -03:00
Werner Almesberger
ce9caf0f3b tornado/fw/sim/alg.c: tune EWMA weights; correct sample rate for simulation 2012-12-09 17:15:30 -03:00
Werner Almesberger
30c683effd tornado/fw/sim/p: pass arguments to "alg"; label graphs; better separate "up" 2012-12-09 17:09:03 -03:00
Werner Almesberger
a11670bb7b tornado/fw/sim/alg.c: accept data from standard input; fix "process" 2012-12-09 16:56:32 -03:00
Werner Almesberger
95cfa9202c tornado/fw/sim/alg.c: take duration of simulation from command line 2012-12-09 16:33:12 -03:00
Werner Almesberger
07e0df0d6a tornado/fw/sim/alg.c: separate data processing from sample generation 2012-12-09 16:29:00 -03:00
Werner Almesberger
4d09658036 tornado/fw/ben/ben.c: accept optional byte address argument 2012-12-05 13:25:25 -03:00
Werner Almesberger
3c343536b1 tornado/fw/mmc.[ch]: read/write address is not in sectors, just call it "addr" 2012-12-05 13:23:54 -03:00
Werner Almesberger
59b53f6e89 tornado/fw/mmc.c: print R1 response when running on Ben 2012-12-05 13:22:36 -03:00
Werner Almesberger
e2172b4eef tornado/fw/ben/ben.c (main): use getopt 2012-12-05 13:01:13 -03:00
Werner Almesberger
cb324a81fc tornado/fw/ben.c: new option -w to write to a sector 2012-12-05 12:56:51 -03:00
Werner Almesberger
0703611bbd tornado/fw/mmc.c (mmc_wait): add 1 ms delay to wait loop
MMC-SPI specifies a card delay of up to 100 ms, which is easier to match
with an explicit delay than with a loop count.
2012-12-05 11:34:31 -03:00
Werner Almesberger
d2f569fbf2 tornado/fw/: apply platform separation by include also to io.h 2012-12-05 11:32:41 -03:00
Werner Almesberger
557a80c3c6 tornado/fw/: handle platform separation for delay function via include path
... and not via #ifdef
2012-12-05 11:30:50 -03:00
Werner Almesberger
c7ed8fbc4a tornado/fw/Makefile (CFLAGS): don't -I../../ben-wpan/atusb/fw/include/ 2012-12-05 11:28:52 -03:00
Werner Almesberger
f82f7c34bc tornado/fw/mmc.c (mmc_wait): return success or failure (timeout) 2012-12-05 11:01:36 -03:00
Werner Almesberger
9bf1f83597 tornado/fw/mmc.c: call mmc_recv for low-level I/O, not mmc_read 2012-12-05 10:59:54 -03:00
Werner Almesberger
d5a4ffe139 tornado/fw/mmc-hw.c (mmc_recv): make sure to send 0xff when receiving 2012-12-05 10:58:26 -03:00
Werner Almesberger
c9e36f90a2 tornado/fw/mmc-hw.c (mmc_activate): allow card to "pre-charge" (Ben needs this) 2012-12-05 10:35:27 -03:00
Werner Almesberger
f449308cc5 tornado/fw/ben/Makefile: compile static binary and un-phony "ben" 2012-12-05 10:27:28 -03:00
Werner Almesberger
1e29171a26 tornado/fw/ben/: add cross-platform testing with the Ben (untested) 2012-12-04 22:39:38 -03:00
Werner Almesberger
4064698884 tornado/fw/mmc-hw.c: complete hardware driver (untested) 2012-12-04 11:56:56 -03:00
Werner Almesberger
a1c7a948d2 tornado/fw/: add MMC driver (WIP, based on Mass Storage for V-USB by "lleeloo") 2012-12-04 10:52:15 -03:00
Werner Almesberger
f3c22bc6ab tornado/fw/: display test text on positive zero crossing 2012-12-04 07:28:55 -03:00
Werner Almesberger
c6bef66427 tornado/fw/led.[ch]: add led_show_pgm to display row from Flash 2012-12-04 07:27:49 -03:00
Werner Almesberger
2161eec066 tornado/fw/txt: xbm2tornado to create #include-able tornado binary; -g for t 2012-12-04 07:27:15 -03:00
Werner Almesberger
a5694eba05 tornado/fw/txt/: tools for text conversion
txt2xbm: convert text to XBM, using ghostscript
stretch: resample XBM with rotation correction (x-axis only)
xbm2gp: convert XBM to gnuplot, taking into account rotation
plot: plot xbm2gp output
t: run all the above to display "TEST"
2012-12-04 00:56:36 -03:00
Werner Almesberger
6ccdd5255a tornado/fw/tornado.c: add test mode indicating positive zero-crossing
Works sometimes but often produces false zero-crossings, particularly
if there are many chain "jumps".
2012-12-03 21:55:21 -03:00
Werner Almesberger
bc00a4d979 tornado/fw/sim/: crude simulation of sensor behaviour and signal processing 2012-12-03 21:23:46 -03:00
Werner Almesberger
8c868198ed tornado/fw/: acceleration sensor "driver" 2012-12-03 21:23:02 -03:00
Werner Almesberger
7b766ed93c tornado/: use UART in SPI mode to send LED patterns (at 4 Mbps) 2012-11-23 19:28:38 -03:00
Werner Almesberger
9447541679 tornado/fw/tornado.c: use LED_* to communicate with LED bar; update demo
Instead of a counter, which worked okay with 16 LEDs but is useless with
all 64 of them, we now show a filling/emptying bar. The update speed is
high enough that rotation results in about a quarter-circle pattern.
2012-11-23 10:47:41 -03:00
Werner Almesberger
6a8fd6cc9f rename "whirl" to "tornado" 2012-11-19 12:30:57 -03:00