1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-22 19:43:07 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
Werner Almesberger
8108aaccd1 fw/diag.c (do_diag): update explanation why we don't enable interrupts
The hang was caused by the RF subsystem getting into trouble. The
interrupts still cause some issues, so we don't enable them yet.
A system reset (ant-cl -R) will clean up everything nicely.
2012-07-06 16:58:53 -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
43686321a7 fw/diag.c: fix and improve DIAG function
- we didn't send ACKs for the authentication packets
- take multiple samples (4)
- add 100 ms delay to let the battery voltage settle
2012-07-01 11:53:51 -03:00
Werner Almesberger
19fb0d31fa fw/: add DIAG protocol (supply voltage measurement, for diagnostics) 2012-07-01 10:43:37 -03:00