yuppie2
Dependencies: SDFileSystem mbed
Fork of rtcfinalcodehet by
Diff: rtsc.h
- Revision:
- 5:3979ca24777a
- Parent:
- 4:374c51671a69
diff -r 374c51671a69 -r 3979ca24777a rtsc.h --- a/rtsc.h Mon Dec 22 14:33:30 2014 +0000 +++ b/rtsc.h Tue Feb 03 17:10:21 2015 +0000 @@ -4,30 +4,21 @@ typedef struct SensorData { char Voltage[8]; char Current[4]; - char Temperature[1]; - char PanelTemperature[2];//read by the 4 thermistors on solar panels - char Vcell_soc;//MSBs correspond to Vcell, LSBs to Soc - char alerts;//UNQUANTISED - //(alerts[0]=1)-> reset indicator=>dont care - //(alerts[1]=1)-> Vcell>ValrtMax(5.1V)->will always be high->dont care - //(alerts[2]=1)-> Vcell<ValrtMin(5.1V)->indicates deep discharge - //(alerts[3]=1)-> Vcell<Vreset(2.5V) - //(alerts[5]=1)-> Soc CROSSES the threshold value - //(alerts[6]=1)-> alert on (alerts[3]) enabled when Vcell<Vreset(here we set it to be 2.5V) + char Temperature; + char PanelTemperature[2]; //HK Data Structure + char Vcell_soc; + char alerts; char crate; - char BatteryTemperature; //to be populated - char faultpoll; //polled faults - char faultir; //interrupted faults - char power_mode; //power modes + char BatteryTemperature; + char faultpoll; + char faultir; + char power_mode; char AngularSpeed[2]; char Bnewvalue[2]; - - //float magnetometer,gyro=>to be addes } SensorData; void spiwrite(int); int spiread(int); int hexint(int); char* getname(int,int,int,int,int,int,int); -char* getts(void); -void storedata(char*,SensorData*); \ No newline at end of file +void storedata(void); \ No newline at end of file