System Management code
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
inCommands/inCommands.h@36:0afc0fc8f86b, 2015-01-22 (annotated)
- Committer:
- pspatel321
- Date:
- Thu Jan 22 07:58:51 2015 +0000
- Revision:
- 36:0afc0fc8f86b
- Parent:
- 34:18bcf276d3bf
- Child:
- 38:8efacce315ae
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?
User | Revision | Line number | New contents of line |
---|---|---|---|
pspatel321 | 30:91af74a299e1 | 1 | #ifndef _SERVICE_CAN_H |
pspatel321 | 30:91af74a299e1 | 2 | #define _SERVICE_CAN_H |
pspatel321 | 30:91af74a299e1 | 3 | |
pspatel321 | 30:91af74a299e1 | 4 | #include "IOobjects.h" |
pspatel321 | 30:91af74a299e1 | 5 | |
pspatel321 | 30:91af74a299e1 | 6 | const int DEVICE_CAN_TIMEOUT = 0.25; // Comms. lost to external device if a message is not received within 200 ms |
pspatel321 | 30:91af74a299e1 | 7 | |
pspatel321 | 34:18bcf276d3bf | 8 | namespace inCommands { |
pspatel321 | 33:6bc82b6b62e5 | 9 | bool serviceCAN(CANMessage* fromXbee=0); |
pspatel321 | 33:6bc82b6b62e5 | 10 | bool receiveMsgXbee(); |
pspatel321 | 34:18bcf276d3bf | 11 | int serviceSerial(); |
pspatel321 | 36:0afc0fc8f86b | 12 | void thread_getInputs(void const* args); |
pspatel321 | 30:91af74a299e1 | 13 | } |
pspatel321 | 30:91af74a299e1 | 14 | |
pspatel321 | 30:91af74a299e1 | 15 | #endif |