sakthi priya amirtharaj
/
BAE_vr2_1_3
i2c working with old hk
Fork of BAE_vr2_1_1 by
Diff: fault.cpp
- Revision:
- 13:1b37d98840d3
- Parent:
- 8:69475d16d23d
- Child:
- 14:ef6be8ac6569
--- a/fault.cpp Tue Dec 16 11:07:33 2014 +0000 +++ b/fault.cpp Wed Dec 17 05:25:04 2014 +0000 @@ -42,7 +42,7 @@ BusOut clear_ir(FAULT_CLEAR5,FAULT_CLEAR6,FAULT_CLEAR7,FAULT_CLEAR8,FAULT_CLEAR9); -extern SensorData Sensor; +extern SensorDataQuantised SensorQuantised; extern int beacon_sc; //to switch beacon between low and high power mode extern int acs_pflag; //to activate/deactivate control algo char out_poll; @@ -94,9 +94,9 @@ out_poll = clear_poll; out_ir = clear_ir; - Sensor.faultpoll = fault_poll ; - Sensor.faultir=fault_ir ; - printf(" %d , %d \n %d , %d\n",Sensor.faultpoll, Sensor.faultir , out_poll , out_ir) ; + SensorQuantised.faultpoll = fault_poll ; + SensorQuantised.faultir=fault_ir ; + printf(" %d , %d \n %d , %d\n",SensorQuantised.faultpoll, SensorQuantised.faultir , out_poll , out_ir) ; }