Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BAE_RTOS_test_1 by
ACS.h
00001 #include "mbed.h" 00002 #include "math.h" 00003 #include "pni.h" 00004 00005 //........................................... 00006 #define TIME_PERIOD 0.02 00007 #define TR_CONSTANT 0.3 00008 00009 void FCTN_ACS_GENPWM_MAIN(float*); 00010 void FCTN_ACS_CNTRLALGO(float*,float*,float*); 00011 void inverse(float mat[3][3],float inv[3][3]); 00012 00013 void FCTN_ATS_SWITCH(bool); 00014 void FCTN_ACS_INIT(); //initialization of registers happens 00015 void FCTN_ATS_DATA_ACQ(float*,float*); // main function: checks errors, gets data, switches on/off the sensor 00016 void FCTN_GET_DATA(float*,float*); //data is obtained 00017 void FCTN_T_OUT(); //timeout function to stop infinite loop 00018 00019
Generated on Sat Jul 23 2022 00:50:53 by
1.7.2
