auto-sync
This commit is contained in:
parent
ce421ea91f
commit
68cd298455
|
@ -10,7 +10,7 @@
|
|||
#include "stepper.h"
|
||||
#include "pin_repository.h"
|
||||
|
||||
#define ST_DELAY_MS 20
|
||||
#define ST_DELAY_MS 200
|
||||
|
||||
#define ST_COUNT 200
|
||||
|
||||
|
@ -21,7 +21,6 @@ static msg_t stThread(StepperMotor *motor) {
|
|||
for (int i = 0; i < ST_COUNT; i++) {
|
||||
motor->pulse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void StepperMotor::pulse() {
|
||||
|
@ -31,7 +30,6 @@ void StepperMotor::pulse() {
|
|||
chThdSleepMilliseconds(ST_DELAY_MS);
|
||||
}
|
||||
|
||||
|
||||
void StepperMotor::initialize(brain_pin_e stepPin, brain_pin_e directionPin) {
|
||||
position = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue