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

6 Commits

Author SHA1 Message Date
Werner Almesberger
bff9ca5801 fw/accel.c (adcsra): correct typo in comment 2012-07-31 10:02:34 -03:00
Werner Almesberger
206eb4d591 clean up diagnostic more and make it more robust
A number of changes:
- don't enable interrupts, since they often cause hangs (not sure why)
- remove GND measurement
- wait 100 us between AMUX setup and start of conversion, to let input
  settle
- reduce delay between line setup and samping from 100 ms to 50 ms,
  for this is already sufficient
2012-07-01 19:40:01 -03:00
Werner Almesberger
1be433e65f fw/accel.c (measure_ref): GND and Vbg measurement function (for diagnostics) 2012-07-01 10:38:59 -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
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
Werner Almesberger
eaa11b110c fw/: sample the acceleration sensor (untested) 2012-06-21 08:56:56 -03:00