divers correctifs

This commit is contained in:
dd060606
2025-05-29 19:56:59 +02:00
parent 25a410b66e
commit 3f74163e20
2 changed files with 60 additions and 14 deletions

View File

@@ -14,13 +14,15 @@ enum StepType
{
STEP_FORWARD,
STEP_ROTATE,
STEP_FORWARD_UNTIL_END
STEP_FORWARD_UNTIL_END,
STEP_BACKWARD
};
struct Step
{
StepType type;
float value; // cm pour STEP_FORWARD, deg pour ROTATE, ignoré pour UNTIL_FALL
float value; // cm pour STEP_FORWARD, deg pour ROTATE, ignoré pour UNTIL_FALL
int32_t speed; // Vitesse en pas / seconde
};
// UART
@@ -49,6 +51,8 @@ struct Step
// Capteur de chute
#define FALL_PIN 13
#define SERVO_PIN 33
#endif
// Le moteur 1 est en 32 microsteps, le moteur 2 est en 64 microsteps