instaspin_foc
fast_obs.h
Go to the documentation of this file.
1 #ifndef _FAST_OBS_H_
2 #define _FAST_OBS_H_
3 
9 
11 
12 
13 // **************************************************************************
14 // modules
15 #include "sw/modules/cal/src/float/cal.h"
16 #include "sw/modules/clarke/src/float/clarke.h"
18 #include "sw/modules/est/src/float/est.h"
19 #include "sw/modules/ipark/src/float/ipark.h"
20 #include "sw/modules/park/src/float/park.h"
21 #include "sw/modules/svgen/src/float/svgen.h"
22 #include "sw/modules/traj/src/float/traj.h"
23 
24 // solutions
25 #include "user.h"
26 
27 // **************************************************************************
28 // the function prototypes
29 
31 extern void setupControllers(void);
32 
33 
35 extern interrupt void mainISR(void);
36 
37 
41 extern void setupClarke_I(CLARKE_Handle handle,const uint_least8_t numCurrentSensors);
42 
43 
47 extern void setupClarke_V(CLARKE_Handle handle,const uint_least8_t numVoltageSensors);
48 
49 
54 extern void sincos_fastRTS(float_t angle_rad, float_t *pSin, float_t *pCos);
55 
56 
60 extern float_t sqrt_fastRTS(float_t x);
61 
62 
64 extern void updateCPUusage(void);
65 
66 
70 
71 
73 #endif // end of _FAST_OBS_H_ definition
74 
void updateGlobalVariables_motor(EST_Handle estHandle)
Updates the global motor variables.
Definition: fast_obs_im.c:491
struct _EST_Obj_ * EST_Handle
void setupClarke_V(CLARKE_Handle handle, const uint_least8_t numVoltageSensors)
Sets the number of voltage sensors.
Definition: proj_lab21.c:848
void sincos_fastRTS(float_t angle_rad, float_t *pSin, float_t *pCos)
Calculates sine and cosine in a single function call, using callable assembly, fast RTS...
void setupClarke_I(CLARKE_Handle handle, const uint_least8_t numCurrentSensors)
Sets the number of current sensors.
Definition: proj_lab21.c:818
interrupt void mainISR(void)
The main interrupt service (ISR) routine.
Definition: proj_lab20.c:512
void updateCPUusage(void)
Updates CPU usage.
Definition: fast_obs_im.c:524
void setupControllers(void)
Setups the controllers.
Definition: fast_obs_im.c:445
float_t sqrt_fastRTS(float_t x)
Calculates square root using callable assembly, fast RTS.
EST_Handle estHandle
the handle for the estimator
Definition: fast_obs_im.c:82
float float_t