AvrIO  1.4.5
Bibliothèque C modulaire pour ATMEL AVR
gyro3d.h
1 
21 #ifndef _AVRIO_GYRO3D_H_
22 #define _AVRIO_GYRO3D_H_
23 
24 #include <avrio/defs.h>
25 
26 __BEGIN_C_DECLS
27 /* ========================================================================== */
28 #include <avrio/vector3f.h>
29 #include <avrio/vector3i.h>
30 
57 /* constants ================================================================ */
58 
62 #define GYRO3D_NOT_CALIBRATED (1)
63 
64 /* internal public functions ================================================ */
75 int iGyro3dInit (void);
76 
86 int iGyro3dCalibrate (uint16_t usNumOfSamples);
87 
95 int iGyro3dRead (float * xRate);
96 
104 int iGyro3dReadRaw (int * xRate);
105 
112 void vGyro3dZero (int * xZero);
113 
122 void vGyro3dSetZero (const int * xZero);
123 
127 void vGyro3dSaveZero (void);
128 
157 int iGyro3dAttitude (float * xAtt, const float * xRate, ticks_t xRateTime, float fA);
158 
167 void vGyro3dAttidudeClear (float * xAtt);
168 
174 __END_C_DECLS
175 /* ========================================================================== */
176 #endif /* _AVRIO_GYRO3D_H_ not defined */
177 
int iGyro3dRead(float *xRate)
Lecture des vitesses angulaires d&#39;un Gyro.
int iGyro3dInit(void)
Initialise le module Gyro.
int iGyro3dCalibrate(uint16_t usNumOfSamples)
Calibration du gyro.
void vGyro3dZero(int *xZero)
Lecture du calage du zéro.
void vGyro3dAttidudeClear(float *xAtt)
Réinitialise le calcul d&#39;attitude.
void vGyro3dSetZero(const int *xZero)
Modification du calage du zéro.
int iGyro3dAttitude(float *xAtt, const float *xRate, ticks_t xRateTime, float fA)
Calcul des angles à partir des vitesses angulaires.
void vGyro3dSaveZero(void)
Sauvegarde du calage du zéro courant en EEPROM.
int iGyro3dReadRaw(int *xRate)
Lecture des vitesses angulaires brutes d&#39;un Gyro.