1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-05-16 01:58:05 +00:00
cdf2018-principal/chef/src/movement.h

39 lines
649 B
C
Raw Normal View History

2018-04-04 14:17:13 +00:00
/*
* Fonctions de déplacment du robot
*/
2018-04-04 14:17:13 +00:00
#ifndef __MOVEMENT_H_
#define __MOVEMENT_H_
2018-05-09 02:10:45 +00:00
#define ANGLE_INSIGNIFIANT NAN
2018-05-11 13:58:18 +00:00
// #define ENABLE_SECURITE
2018-05-09 07:57:11 +00:00
2018-05-16 05:58:23 +00:00
#include <stdbool.h>
2018-04-04 14:17:13 +00:00
#include "position.h"
2018-05-16 05:58:23 +00:00
enum movStates {
quelconque, // 0
direction, // 1
approche, // 2
arret, // 3
orientation, // 4
oriente, // 5
fini // 6
};
2018-05-11 13:58:18 +00:00
// Public
2018-04-04 14:17:13 +00:00
void configureMovement();
void deconfigureMovement();
2018-05-06 16:35:26 +00:00
void setDestination(struct position* pos);
2018-05-09 02:10:45 +00:00
void waitDestination();
2018-05-11 13:58:18 +00:00
void enableAsservissement();
void disableAsservissement();
2018-05-16 05:58:23 +00:00
void setSecurite(bool av, bool ar);
2018-05-11 13:58:18 +00:00
// Private
void* TaskMovement(void* pData);
2018-04-04 14:17:13 +00:00
#endif