System Management code

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:
33:6bc82b6b62e5
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?

UserRevisionLine numberNew contents of line
pspatel321 33:6bc82b6b62e5 1 #ifndef CONSTANTS_H
pspatel321 33:6bc82b6b62e5 2 #define CONSTATNS_H
pspatel321 33:6bc82b6b62e5 3
pspatel321 36:0afc0fc8f86b 4 #define BAUD 230400 // Serial port baud rate
pspatel321 36:0afc0fc8f86b 5 #define CHAR_TIME 0.00005 // Time to send 1 char @ above baud
pspatel321 33:6bc82b6b62e5 6 #define TX_SIZE 1000 // Serial buffer TX size
pspatel321 36:0afc0fc8f86b 7 #define RX_SIZE 60 // Serial buffer RX size
pspatel321 33:6bc82b6b62e5 8
pspatel321 33:6bc82b6b62e5 9 #define XBEE_BAUD 250000 // 250k baud serial for xbees
pspatel321 33:6bc82b6b62e5 10 #define XBEE_TX_SIZE 1000 // Serial buffer TX size for xbees
pspatel321 33:6bc82b6b62e5 11 #define XBEE_RX_SIZE 100 // Serial buffer RX size for xbees
pspatel321 33:6bc82b6b62e5 12
pspatel321 33:6bc82b6b62e5 13 #define START_DELAY 10 // Startup delay for latch monitor circuits
pspatel321 33:6bc82b6b62e5 14 #define FAST_LOOP 0.01 // Period (seconds) for fast loop (sampling, filters)
pspatel321 33:6bc82b6b62e5 15 #define GATHER_LOOP 0.1 // Period (seconds) for main data processing loop
pspatel321 36:0afc0fc8f86b 16 #define WDT_TIME 0.5 // Normal, running mode WDT timeout
pspatel321 33:6bc82b6b62e5 17 #define CAN_LOOP 0.1 // Output period for CAN transmissions
pspatel321 33:6bc82b6b62e5 18
pspatel321 33:6bc82b6b62e5 19 #endif