I2C BAE standalone hardware testing
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of ACS_Flowchart_BAE_1 by
Diff: ACS.cpp
- Revision:
- 13:fb7facaf308b
- Parent:
- 10:f93407b97750
- Child:
- 15:e09aaaccf134
diff -r af1d7e18b868 -r fb7facaf308b ACS.cpp --- a/ACS.cpp Wed Apr 13 18:34:28 2016 +0000 +++ b/ACS.cpp Wed Apr 13 21:48:21 2016 +0000 @@ -11,15 +11,15 @@ //********************************flags******************************************// extern uint32_t BAE_STATUS; extern uint32_t BAE_ENABLE; -extern char ACS_INIT_STATUS; -extern char ACS_DATA_ACQ_STATUS; -extern char ACS_ATS_STATUS; -extern char ACS_MAIN_STATUS; -extern char ACS_STATUS; +extern uint8_t ACS_INIT_STATUS; +extern uint8_t ACS_DATA_ACQ_STATUS; +extern uint8_t ACS_ATS_STATUS; +extern uint8_t ACS_MAIN_STATUS; +extern uint8_t ACS_STATUS; -extern char ACS_ATS_ENABLE; -extern char ACS_DATA_ACQ_ENABLE; -extern char ACS_STATE; +extern uint8_t ACS_ATS_ENABLE; +extern uint8_t ACS_DATA_ACQ_ENABLE; +extern uint8_t ACS_STATE; DigitalOut phase_TR_x(PIN27); // PHASE pin for x-torquerod DigitalOut phase_TR_y(PIN28); // PHASE pin for y-torquerod @@ -393,8 +393,8 @@ void FCTN_ATS_DATA_ACQ() { - ACS_DATA_ACQ_STATUS = 's'; //set ACS_DATA_ACQ_STATUS flag for att sens 2 - if( ACS_ATS_ENABLE == 'e') + ACS_DATA_ACQ_STATUS = 1; //set ACS_DATA_ACQ_STATUS flag for att sens 2 + if( ACS_ATS_ENABLE == 1) { FLAG(); pc_acs.printf("attitude sensor execution called \n \r"); @@ -450,7 +450,7 @@ { ACS_DATA_ACQ_STATUS = 'f'; } - ACS_DATA_ACQ_STATUS = 'c'; //clear ACS_DATA_ACQ_STATUS flag for att sens 2 + ACS_DATA_ACQ_STATUS = 0; //clear ACS_DATA_ACQ_STATUS flag for att sens 2 } void FCTN_ACS_GENPWM_MAIN(float Moment[3])