Added EPS faults
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of QM_BAE_review_1 by
ACS.h@16:5f0f2a3f3e8d, 2016-06-13 (annotated)
- Committer:
- azaddevarm
- Date:
- Mon Jun 13 10:37:50 2016 +0000
- Revision:
- 16:5f0f2a3f3e8d
- Parent:
- 0:7b4c00e3912f
Added EPS faults
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sakthipriya | 0:7b4c00e3912f | 1 | #include "mbed.h" |
sakthipriya | 0:7b4c00e3912f | 2 | #include "math.h" |
sakthipriya | 0:7b4c00e3912f | 3 | #include "pni.h" |
sakthipriya | 0:7b4c00e3912f | 4 | |
sakthipriya | 0:7b4c00e3912f | 5 | //........................................... |
sakthipriya | 0:7b4c00e3912f | 6 | #define TIME_PERIOD 0.02 |
sakthipriya | 0:7b4c00e3912f | 7 | #define TR_CONSTANT 0.3 |
sakthipriya | 0:7b4c00e3912f | 8 | |
sakthipriya | 0:7b4c00e3912f | 9 | void FCTN_ACS_GENPWM_MAIN(float*); |
sakthipriya | 0:7b4c00e3912f | 10 | void FCTN_ACS_CNTRLALGO(float*,float*); |
sakthipriya | 0:7b4c00e3912f | 11 | void inverse(float mat[3][3],float inv[3][3]); |
sakthipriya | 0:7b4c00e3912f | 12 | extern void FLAG(); |
sakthipriya | 0:7b4c00e3912f | 13 | |
sakthipriya | 0:7b4c00e3912f | 14 | void FCTN_ATS_SWITCH(bool); |
sakthipriya | 0:7b4c00e3912f | 15 | void FCTN_ACS_INIT(); //initialization of registers happens |
sakthipriya | 0:7b4c00e3912f | 16 | //void FCTN_ATS_DATA_ACQ(float*,float*); // main function: checks errors, gets data, switches on/off the sensor |
sakthipriya | 0:7b4c00e3912f | 17 | //void FCTN_GET_DATA(float*,float*); //data is obtained |
sakthipriya | 0:7b4c00e3912f | 18 | void FCTN_T_OUT(); //timeout function to stop infinite loop |
sakthipriya | 0:7b4c00e3912f | 19 | void FCTN_ATS_DATA_ACQ(); |