mirror of
https://github.com/modelec/PAMI-2025.git
synced 2026-03-18 21:40:36 +01:00
ajout système d'étapes
This commit is contained in:
@@ -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
9
include/utils.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
void enableDrivers();
|
||||
void disableDrivers();
|
||||
|
||||
int getStepsForDistance(float cm);
|
||||
|
||||
#endif // UTILS_H
|
||||
Reference in New Issue
Block a user