1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-01 13:15:55 +02:00
Commit Graph

3 Commits

Author SHA1 Message Date
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