1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-22 12:06:16 +02:00
Commit Graph

94 Commits

Author SHA1 Message Date
Werner Almesberger
56290e0174 tools/libtxt/: add edit compiler (untested) 2012-06-30 12:34:18 -03:00
Werner Almesberger
2a83110369 tools/libtxt/: add image drawing (future <IMG name> directive) 2012-06-30 12:01:24 -03:00
Werner Almesberger
e2eced62a2 tools/libtxt/edit.c: forgot to commit in 67a3ecc798 2012-06-30 11:44:09 -03:00
Werner Almesberger
3ef4fb3ca2 tools/libtxt/: make_font takes ownership of the image
This way, we don't need to track/free the image separately.
2012-06-30 11:43:13 -03:00
Werner Almesberger
67a3ecc798 tools/libtxt/: add rendering of (compiled) edits (untested, WIP) 2012-06-29 22:52:25 -03:00
Werner Almesberger
d05c6a9558 tools/libtxt/: restructure to make more modular and avoid global variables 2012-06-29 22:21:30 -03:00
Werner Almesberger
1b692d0961 fw/ERRATA: add hardware errata and ideas for future improvements 2012-06-29 22:20:56 -03:00
Werner Almesberger
60c8145991 tools/libtxt/fonts/: 4x5, 4x7, 5x5, and 5x7 font 2012-06-29 21:04:58 -03:00
Werner Almesberger
2514c0891a tools/libtxt/: text composition library (WIP) 2012-06-29 21:04:11 -03:00
Werner Almesberger
f9e253963b tools/Makefile: add targets "clean" and "spotless" 2012-06-29 15:30:55 -03:00
Werner Almesberger
28a3689672 tools/: add cross-compilation for the Ben NanoNote
This uses the OpenWRT toolchain. It creates a static executable that will
also run on JLime. Graphical output is disabled so far.
2012-06-29 15:30:08 -03:00
Werner Almesberger
65fbf733c3 fw/hash.h: only #include avr/pgmspace.h when building for AVR (and not for host) 2012-06-29 15:24:13 -03:00
Werner Almesberger
a924364311 fw/rf.c (rf_send): increase delay from 2 ms to 9 ms, for slow atben
Not sure why the Ben exhibited such a long turn-around time. It should
actually be faster than a PC with atusb. Maybe it's because of latency
introduced by other sources.
2012-06-29 10:26:25 -03:00
Werner Almesberger
01a9eebc99 tools/bit2ant: renamed to xbm2ant 2012-06-28 16:36:14 -03:00
Werner Almesberger
b4c855f25a revert nonsensical c9923b4282
That's why sleep deprivation is a bad thing ...
2012-06-28 16:35:01 -03:00
Werner Almesberger
a859b3b8b9 fw/proto.h (TP_BWD_START_DEFAULT): raise from 50 ms to 70 ms, like TP_FWD_START_DEFAULT
Going to the longer aluminium stick changed the timing a bit.
2012-06-28 01:53:18 -03:00
Werner Almesberger
c9923b4282 fw/antorcha.c (main): allow a new sweep to preempt an active sweep
Waiting until the current sweep finished could delay the next sweep
(without cancelling it), confusing the timing.
2012-06-28 01:33:31 -03:00
Werner Almesberger
69ee8dfec7 tools/antorcha.c (usage): explain options and show parameter names and defaults 2012-06-28 01:21:47 -03:00
Werner Almesberger
00f0b4e692 tools/antorcha.c: new option -R to command a reset 2012-06-28 00:39:15 -03:00
Werner Almesberger
fe3ff8d5e1 fw/antorcha.c: cleanup
- rename "param" to send_param"
- move "map" from add_param to compilation unit scope
2012-06-27 03:32:10 -03:00
Werner Almesberger
558f5a7503 fw/antorcha.c (send_image, param): update hash when sending salt 2012-06-27 03:30:33 -03:00
Werner Almesberger
3241822a93 tools/antorcha.c: add parameter upload 2012-06-27 03:28:41 -03:00
Werner Almesberger
d651c23a04 fw/proto.h: assorted cleanup and corrections
- remove struct params.clkT_period
- correct size of tp_*_start
- correct size of tp_*_pix
- move MAX_LINES from image.h to proto.h (to ease sharing with tools)

Things now work a bit differently from how they were planned back when
clkT_period was added.
2012-06-27 03:07:56 -03:00
Werner Almesberger
0a0792688b fw/: add parameter upload (untested), move parameters from antorcha.c to param.c 2012-06-27 02:36:08 -03:00
Werner Almesberger
276ffd7f44 fw/image.* (image_secret): make image_secret global, for future sharing 2012-06-27 02:30:39 -03:00
Werner Almesberger
308c094af2 fw/: rearrange parameters and move defaults from antorcha.c to proto.h 2012-06-27 02:15:50 -03:00
Werner Almesberger
cb846be507 fw/antorcha.c: add backward sweep 2012-06-25 11:37:16 -03:00
Werner Almesberger
00180fb287 try cleaner sweep synchronization algorithm
The predictive part doesn't produce useful results so far, so we still
use a fixed offset from the trigger.
2012-06-25 10:48:19 -03:00
Werner Almesberger
023c2aa1e9 fw/: base sweep start time on absolute time
This way, we can define the next sweep while the previous one is still
in progress.
2012-06-24 11:59:52 -03:00
Werner Almesberger
646f54d25c fw/sweep.c (TIMER1_OVF_vect): turn off the LEDs when done
This means that the image no longer has to contain terminating all-zero rows.
2012-06-23 22:29:05 -03:00
Werner Almesberger
695bc5a25a fw/: reduce image width from 100 to 80 square pixels
To achieve square 100 pixels (1:6.25 image aspect ratio), very vigorous
movement is needed. 80 pixels (still 1:5) are easier. Initial estimates
suggested a usable range of 1:4-1:5, so this is still good.

Note that we may want to change the aspect ratio of the pixels themselves
in the future (for smoother letters), so the pixel count may go up again.

80 pixels correspond to 11 characters in a 7x5 font with 2 pixels
separation between characters. We may want to go up to 82 pixels
to allow a 12th character - or use a proportional font.
2012-06-23 21:57:18 -03:00
Werner Almesberger
7816ea89d5 fw/antorcha.c: crude synchronization of image with movement
Doesn't look too bad for a first try.
2012-06-23 21:53:26 -03:00
Werner Almesberger
dd72f4642e fw/spi.c: explain why we probably can't reach fosc/2 = 4 MHz 2012-06-23 14:54:31 -03:00
Werner Almesberger
5b1f722568 tools/: -S now dumps samples to stdout; -S -S produces graphical output 2012-06-23 14:35:44 -03:00
Werner Almesberger
2f120fa683 tools/antorcha.c (samples): move reading of X/Y samples to shared function 2012-06-23 14:25:08 -03:00
Werner Almesberger
18c7b43a59 fw/reset.c: oops, forgot to commit the reset protocol handler 2012-06-23 12:03:25 -03:00
Werner Almesberger
06f9907cae fw/image.c: put image_secret in PROGMEM to save scarce RAM 2012-06-23 12:01:37 -03:00
Werner Almesberger
a59bb00a27 fw/hash.[ch]: new function hash_merge_progmem to read from Flash instead of RAM 2012-06-23 11:59:47 -03:00
Werner Almesberger
420370ee9c Merge branch 'detached'
Had a detached head for several hours :-(

Conflicts:
	doc/PROTOCOL
	fw/sample.c
2012-06-21 21:20:05 -03:00
Werner Almesberger
e2f228907b fw/accel.c (adcsra): let ADC run at 125 kHz (instead of 67.5 kHz) 2012-06-21 21:12:20 -03:00
Werner Almesberger
b262e2f142 fw/spi.c (spi_init): revert the SPI speed increase (caused instability)
Some more testing showed that transfers would get stuck after ~40 packets.
Need to find out what happened before trying this again.
2012-06-21 19:52:41 -03:00
Werner Almesberger
ffcfd3d09d fw/spi.c (spi_init): raise SPI speed from fosc/4 to fosc/2 2012-06-21 19:38:44 -03:00
Werner Almesberger
ea994c8ed0 tools/antorcha.c (samples): show the timestamp when printing sample values 2012-06-21 19:19:40 -03:00
Werner Almesberger
28cf696a08 fw/sample.c (handler): set the time in samples (was set to zero, for debugging) 2012-06-21 19:16:55 -03:00
Werner Almesberger
77bd5797d3 tools/plot.c: clear sample mode screen with C 2012-06-21 18:56:18 -03:00
Werner Almesberger
87050bc12a tools/: exit from sample mode by pressing Q or by closing the window 2012-06-21 18:48:54 -03:00
Werner Almesberger
4eb1065dd7 tools/: add sampling mode (-S) with graphical output 2012-06-21 16:21:56 -03:00
Werner Almesberger
734e33cd19 doc/PROTOCOL: clarify byte order in SAMPLES messages 2012-06-21 16:20:21 -03:00
Werner Almesberger
8eca4c99c7 fw/sample.c: fix logic in handler() and filter incomplete samples
An incomplete sample would be an X value followed by another X value,
or Y followed by Y. Not entirely sure why this happens in the first
place, but it does happen.
2012-06-21 16:17:47 -03:00
Werner Almesberger
58e0dda95d fw/accel.c: use timer 0 to trigger a pair of conversions (X/Y) only every 1 ms 2012-06-21 16:15:56 -03:00