Files
odo_STM32/Core/Inc/CommCallbacks.h
2025-09-30 18:56:46 +02:00

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