ajout module_mouvement
Dependencies: mbed xbee_lib ADXL345_I2C IMUfilter ITG3200 Motor RangeFinder Servo mbos PID
Fork of Labo_TRSE_Drone by
Diff: Service/Service.h
- Revision:
- 31:a0800d3da787
- Parent:
- 22:d2adbcc3580d
- Child:
- 33:ec7d635636bf
--- a/Service/Service.h Wed Apr 03 13:48:30 2013 +0000 +++ b/Service/Service.h Wed Apr 17 10:16:19 2013 +0000 @@ -22,6 +22,38 @@ #include "mbos.h" + //Define de type de mouvement + #define GAUCHE 1 + #define DROITE 2 + #define AVANT 3 + #define ARRIERE 4 + #define HAUT 5 + #define BAS 6 + #define LATERAL_GAUCHE 7 + #define LATERAL_DROITE 8 + + //Define de type d'ordre spécifique + #define ORDRE_RETOUR_BASE 1 + #define ORDRE_POSER 2 + + union conversionCharFloat { + float f; + char ch[4]; + }; + + typedef struct { + float x; + float y; + float z; + }position; + + unsigned int COMMANDE_TRAJECTOIRE; + unsigned int NIVEAU_BATTERIE; + position DONNEE_GYROSCOPE; + position DONNEE_ACCELEROMETRE; + + + class C_Service { private : /* ATTRIBUTS */