Changes to be made for ATS_Fault logic and ACS_State

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of Japan_BAE_sensorworking_interrupr_reoccuring_copy by Team Fox

Committer:
Bragadeesh153
Date:
Wed Apr 20 17:47:05 2016 +0000
Revision:
15:3239c6391ffa
Parent:
0:7b4c00e3912f
Upated commissioning.. Changes to be made in ACS_MAIN logic and checking the faults of ATS

Who changed what in which revision?

UserRevisionLine numberNew 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();