mirror of
https://github.com/modelec/PAMI-2025.git
synced 2026-01-18 16:27:30 +01:00
update drivers config
This commit is contained in:
@@ -39,7 +39,7 @@ enum Direction
|
||||
|
||||
// Paramètres moteurs
|
||||
#define R_SENSE 0.11f
|
||||
#define CURRENT 600 // mA
|
||||
#define CURRENT 800 // mA
|
||||
// Adresses des drivers TMC2209
|
||||
#define DRIVER1_ADDR 0b00
|
||||
#define DRIVER2_ADDR 0b01
|
||||
|
||||
@@ -210,9 +210,12 @@ void setup()
|
||||
driver1.en_spreadCycle(false);
|
||||
driver2.en_spreadCycle(false);
|
||||
|
||||
driver1.pwm_autoscale(true);
|
||||
driver2.pwm_autoscale(true);
|
||||
|
||||
stopMotors();
|
||||
moveAsyncSteps(500, 200, false);
|
||||
// rotateAsync(90, 200, true);
|
||||
moveAsyncSteps(500, 1000, false);
|
||||
// rotateAsync(90, 1000, true);
|
||||
Serial.println("Setup complete");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user