2023-02-19 16:56:45 +00:00
|
|
|
#include "Trajectoire.h"
|
|
|
|
|
2023-03-27 18:40:10 +00:00
|
|
|
enum etat_trajet_t{
|
2023-02-19 16:56:45 +00:00
|
|
|
TRAJET_EN_COURS,
|
|
|
|
TRAJET_TERMINE
|
|
|
|
};
|
2022-12-19 18:32:39 +00:00
|
|
|
|
2023-03-03 15:37:36 +00:00
|
|
|
// Vitesse et acceleration pour translation pure (en mm/s et mm/s²)
|
|
|
|
#define TRAJECT_CONFIG_AVANCE_DROIT 1000, 500
|
|
|
|
// Vitesse et acceleration pour un mouvement complexe (en mm et mm/s²)
|
|
|
|
#define TRAJECT_CONFIG_AVANCE_ET_TOURNE 300, 500
|
|
|
|
// Vitesse et acceleration pour une rotation (rad/s et rad/s²)
|
|
|
|
#define TRAJECT_CONFIG_ROTATION_PURE 2, 2
|
|
|
|
|
2023-04-21 20:33:29 +00:00
|
|
|
extern const double distance_pas_obstacle;
|
2022-12-10 14:29:04 +00:00
|
|
|
|
|
|
|
void Trajet_init();
|
2023-03-03 14:36:58 +00:00
|
|
|
void Trajet_config(double _vitesse_max_trajet_mm_s, double _acceleration_mm_ss);
|
2022-12-10 14:29:04 +00:00
|
|
|
void Trajet_debut_trajectoire(struct trajectoire_t trajectoire);
|
2023-03-27 18:40:10 +00:00
|
|
|
enum etat_trajet_t Trajet_avance(double temps_s);
|
2022-12-10 14:29:04 +00:00
|
|
|
struct position_t Trajet_get_consigne(void);
|
2023-04-01 13:29:54 +00:00
|
|
|
double Trajet_get_obstacle_mm(void);
|
|
|
|
void Trajet_set_obstacle_mm(double distance_mm);
|
|
|
|
void Trajet_stop(double);
|
2023-04-21 20:33:29 +00:00
|
|
|
double Trajet_get_orientation_avance(void);
|