4-10-2015 BAE_RTOS_TEST ACS_DATA_ACQ and I2C sending 25 bytes to CDMS
Fork of BAE_RTOS_test_1 by
ACS.h@2:f26706e0d779, 2015-10-04 (annotated)
- Committer:
- gkumar
- Date:
- Sun Oct 04 07:24:39 2015 +0000
- Revision:
- 2:f26706e0d779
- Parent:
- 1:b8c71afbe6e5
4-10-2015 BAE_RTOS_TEST2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gkumar | 1:b8c71afbe6e5 | 1 | #include "mbed.h" |
gkumar | 1:b8c71afbe6e5 | 2 | #include "math.h" |
gkumar | 1:b8c71afbe6e5 | 3 | #include "pni.h" |
gkumar | 1:b8c71afbe6e5 | 4 | |
gkumar | 1:b8c71afbe6e5 | 5 | //........................................... |
gkumar | 1:b8c71afbe6e5 | 6 | #define TIME_PERIOD 0.02 |
gkumar | 1:b8c71afbe6e5 | 7 | #define TR_CONSTANT 0.3 |
gkumar | 1:b8c71afbe6e5 | 8 | |
gkumar | 1:b8c71afbe6e5 | 9 | void FCTN_ACS_GENPWM_MAIN(float*); |
gkumar | 1:b8c71afbe6e5 | 10 | void FCTN_ACS_CNTRLALGO(float*,float*,float*); |
gkumar | 1:b8c71afbe6e5 | 11 | void inverse(float mat[3][3],float inv[3][3]); |
gkumar | 1:b8c71afbe6e5 | 12 | |
gkumar | 1:b8c71afbe6e5 | 13 | void FCTN_ATS_SWITCH(bool); |
gkumar | 1:b8c71afbe6e5 | 14 | void FCTN_ACS_INIT(); //initialization of registers happens |
gkumar | 1:b8c71afbe6e5 | 15 | void FCTN_ATS_DATA_ACQ(float*,float*); // main function: checks errors, gets data, switches on/off the sensor |
gkumar | 1:b8c71afbe6e5 | 16 | void FCTN_GET_DATA(float*,float*); //data is obtained |
gkumar | 1:b8c71afbe6e5 | 17 | void FCTN_T_OUT(); //timeout function to stop infinite loop |
gkumar | 1:b8c71afbe6e5 | 18 | |
gkumar | 1:b8c71afbe6e5 | 19 |