mirror of
https://github.com/modelec/PAMI-2025.git
synced 2026-03-18 21:40:36 +01:00
divers correctifs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user