System Management code

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Committer:
pspatel321
Date:
Wed Feb 11 23:09:57 2015 +0000
Revision:
39:ddf38df9699e
Parent:
38:8efacce315ae
Updated CAN IDs for datalogging.  Changed profile encoding.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pspatel321 38:8efacce315ae 1 #ifndef DEFAULT_PROFILE_H
pspatel321 38:8efacce315ae 2 #define DEFAULT_PROFILE_H
pspatel321 38:8efacce315ae 3
pspatel321 38:8efacce315ae 4 #include "Profile.h"
pspatel321 38:8efacce315ae 5
pspatel321 38:8efacce315ae 6 // The default flash configuration object, used as backup/failsafe in case other profiles are corrupted
pspatel321 38:8efacce315ae 7 Profile defaultProfile = {
pspatel321 38:8efacce315ae 8 -2, // GLV charging current limit
pspatel321 38:8efacce315ae 9 5, // GLV discharging current limit
pspatel321 38:8efacce315ae 10 1.4, // GLV battery nominal capacity (Ah)
pspatel321 38:8efacce315ae 11 50, // GLV battery current filter taps
pspatel321 38:8efacce315ae 12
pspatel321 38:8efacce315ae 13 1.0, // DC-DC turn-on threshold current
pspatel321 38:8efacce315ae 14 20, // DC-DC over current limit
pspatel321 38:8efacce315ae 15 1, // DC-DC start-up delay
pspatel321 38:8efacce315ae 16 1, // DC-DC stop delay
pspatel321 38:8efacce315ae 17 50, // DC-DC current filter taps
pspatel321 38:8efacce315ae 18
pspatel321 38:8efacce315ae 19 10, // IMD Latch soft-delay on startup
pspatel321 38:8efacce315ae 20 10, // AMS Latch soft-delay on startup
pspatel321 38:8efacce315ae 21 60, // Interal over-temp
pspatel321 38:8efacce315ae 22
pspatel321 38:8efacce315ae 23 true, // CAN noack
pspatel321 38:8efacce315ae 24 true, // Extended serial display
pspatel321 38:8efacce315ae 25
pspatel321 38:8efacce315ae 26 CAN_TX_SIZE, // CAN tx size
pspatel321 38:8efacce315ae 27 CAN_RX_SIZE, // CAN rx size
pspatel321 38:8efacce315ae 28 SERIAL_BAUD, // Serial port baudrate
pspatel321 38:8efacce315ae 29 TX_SIZE, // Serial tx buffer size
pspatel321 38:8efacce315ae 30 };
pspatel321 38:8efacce315ae 31
pspatel321 38:8efacce315ae 32 #endif