mirror of
https://github.com/modelec/odo_STM32.git
synced 2026-01-18 16:27:25 +01:00
31 lines
664 B
C
31 lines
664 B
C
#ifndef COMM_CALLBACKS_HPP
|
|
#define COMM_CALLBACKS_HPP
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Déclarations des fonctions appelées depuis le C
|
|
void Comm_GetPos(float& x, float& y, float& t);
|
|
void Comm_SetPos(float x, float y, float t);
|
|
|
|
void Comm_GetSpeed(float& vx, float& vy, float& omega);
|
|
|
|
bool Comm_GetPID(char *pid, float &p, float &i, float &d);
|
|
|
|
bool Comm_SetPID(char *pid, float p, float i, float d);
|
|
|
|
void Comm_StartOdometry(bool start);
|
|
|
|
void Comm_AddWaypoint(int id, int type, float x, float y, float t);
|
|
|
|
float Comm_GetDistance(int sensorId);
|
|
|
|
void Comm_SetPWM(float left, float right);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // COMM_CALLBACKS_HPP
|