Has base BMU code but sends dummy temperature and voltage readings to test CAN
Dependencies: CUER_CAN DS1820 LTC2943 LTC6804 mbed
Fork of BMS_BMUCore_Max by
Diff: Data_Types_BMU.h
- Revision:
- 14:e0e88a009f4c
- Parent:
- 12:fa9b1a459e47
--- a/Data_Types_BMU.h Wed Jun 28 16:56:33 2017 +0000 +++ b/Data_Types_BMU.h Sun Jul 02 01:45:39 2017 +0000 @@ -38,12 +38,16 @@ #define MIN_CELL_VOLTAGE 1 #define MAX_CELL_TEMPERATURE 1 +//CAN Buffer +#define CAN_BUFFER_SIZE 255 //Setting this to be quite large, should be equal to max # of ids expected to recieve + // Delay #define LOOP_DELAY_S 0.1 // TODO is this delay the correct length? struct individual_temperature{ // Structure that will store a temperature value and also an ID - uint8_t ID; // CMU number + char ROMID[8]; //ROM array for temperature sensor, subset of it is useful as ID + //ROMID 1-6 are the useful values for this case, ignore the rest float measurement; };