ajout système d'étapes

This commit is contained in:
dd060606
2025-05-25 13:15:07 +02:00
parent 9167637101
commit d728979256
4 changed files with 130 additions and 59 deletions

View File

@@ -10,6 +10,19 @@ enum Direction
STOP
};
enum StepType
{
STEP_FORWARD,
STEP_ROTATE,
STEP_FORWARD_UNTIL_FALL
};
struct Step
{
StepType type;
float value; // cm pour STEP_FORWARD, deg pour ROTATE, ignoré pour UNTIL_FALL
};
// UART
#define TX_PIN 17
#define RX_PIN 16

9
include/utils.h Normal file
View File

@@ -0,0 +1,9 @@
#ifndef UTILS_H
#define UTILS_H
void enableDrivers();
void disableDrivers();
int getStepsForDistance(float cm);
#endif // UTILS_H