To be debugged

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of TFR_BAE_vr1_1_Debug153 by Bragadeesh S

ACS.h

Committer:
Bragadeesh153
Date:
2016-02-03
Revision:
9:f66c57a01e05
Parent:
8:aad4f22221b1

File content as of revision 9:f66c57a01e05:

#include "mbed.h"
#include "math.h"
#include "pni.h" 

//...........................................
#define TIME_PERIOD  0.02
#define TR_CONSTANT  0.15254

void FCTN_ACS_GENPWM_MAIN(float*);
void FCTN_ACS_CNTRLALGO (float moment[3], float b1[3], float omega1[3], float b_old[3], int &alarmmode, int &flag_firsttime, int &controlmode);
void controlmodes(float moment[3], float b[3], float db[3], float omega[3], int controlmode1, float MmntMax);
float max_array(float arr[3]);
void inverse(float mat[3][3],float inv[3][3],int &singularity_flag);
//void inverse(float mat[3][3],float inv[3][3]);
extern void FLAG();

void FCTN_ATS_SWITCH(bool);
void 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
void FCTN_ATS_DATA_ACQ();