Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Committer:
pspatel321
Date:
Thu Jan 22 07:58:51 2015 +0000
Revision:
36:0afc0fc8f86b
Parent:
30:91af74a299e1
Tested in car with other systems.  Most features are good to go.  Except xbees need work.  The DC-DC protection features were giving problems due to spurious current measurements.  They have been edited to reduce glitchy errors.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pspatel321 30:91af74a299e1 1 #ifndef _FILE_POLLSWITCH_H
pspatel321 30:91af74a299e1 2 #define _FILE_POLLSWITCH_H
pspatel321 30:91af74a299e1 3
pspatel321 36:0afc0fc8f86b 4 #include "mbed.h"
pspatel321 30:91af74a299e1 5
pspatel321 30:91af74a299e1 6 class PollSwitch{
pspatel321 30:91af74a299e1 7 public:
pspatel321 36:0afc0fc8f86b 8 PollSwitch(DigitalIn *sw, int numSwitches);
pspatel321 30:91af74a299e1 9
pspatel321 30:91af74a299e1 10 // Returns new state, 0 means all Closed, 1=first sense line (fuse), 12=last (TSMS)
pspatel321 30:91af74a299e1 11 char poll();
pspatel321 30:91af74a299e1 12
pspatel321 30:91af74a299e1 13 private:
pspatel321 36:0afc0fc8f86b 14 DigitalIn *sw;
pspatel321 30:91af74a299e1 15 int numSwitches;
pspatel321 30:91af74a299e1 16 };
pspatel321 30:91af74a299e1 17 #endif