![](/media/cache/group/nine_tails_kurama_by_zubair43-d4zyf5s.jpg.50x50_q85.jpg)
FINAL ACS TO BE USED FOR TESTING. COMMISSIONING, ACS MAIN, DATA ACQ ALL DONE.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of ACS_FULL_Flowchart_BAE by
Diff: ACS.h
- Revision:
- 19:403cb36e22ed
- Parent:
- 18:21740620c65e
diff -r 21740620c65e -r 403cb36e22ed ACS.h --- a/ACS.h Mon Jun 13 13:44:31 2016 +0000 +++ b/ACS.h Tue Jun 28 10:11:54 2016 +0000 @@ -9,21 +9,20 @@ #define kdetumble 2000000 #define MmntMax 1.1 // Unit: Ampere*Meter^2 #define OmegaMax 1*3.1415/180.0 // Unit: Radians/Second -#define ACS_DEMAG_TIME_DELAY 20 +#define ACS_DEMAG_TIME_DELAY 65 +#define ACS_Z_FIXED_MOMENT 1.3 #define senstivity_gyro 6.5536; //senstivity is obtained from 2^15/5000dps #define senstivity_mag 32.768; //senstivity is obtained from 2^15/1000microtesla -#define senstivity_time 32; //senstivity is obtained from 2^16/2048dps +#define senstivity_time 32; //senstivity is obtained from 2^16/2048 s void FCTN_ACS_GENPWM_MAIN(float*); -void FCTN_ACS_CNTRLALGO(float*,float*,int); -void controlmodes(float*, float*, float*, uint8_t); +void FCTN_ACS_CNTRLALGO(float*,float*,float*,uint8_t,uint8_t,uint8_t); +void controlmodes(float*,float*, float*, float*, uint8_t,uint8_t); void inverse(float mat[3][3],float inv[3][3]); extern void FLAG(); void FCTN_ATS_SWITCH(bool); int FCTN_ACS_INIT(); //initialization of registers happens -//void FCTN_ATS_DATA_ACQ(float*,float*); // main function: checks errors, gets data, switches on/off the sensor -//void FCTN_GET_DATA(float*,float*); //data is obtained void FCTN_T_OUT(); //timeout function to stop infinite loop int FCTN_ATS_DATA_ACQ();