mirror of https://github.com/FOME-Tech/fome-fw.git
auto-sync
This commit is contained in:
parent
d6f8aad361
commit
81195e0758
|
@ -10,7 +10,7 @@
|
||||||
#include "stepper.h"
|
#include "stepper.h"
|
||||||
#include "pin_repository.h"
|
#include "pin_repository.h"
|
||||||
|
|
||||||
#define ST_DELAY_MS 20
|
#define ST_DELAY_MS 200
|
||||||
|
|
||||||
#define ST_COUNT 200
|
#define ST_COUNT 200
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ static msg_t stThread(StepperMotor *motor) {
|
||||||
for (int i = 0; i < ST_COUNT; i++) {
|
for (int i = 0; i < ST_COUNT; i++) {
|
||||||
motor->pulse();
|
motor->pulse();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void StepperMotor::pulse() {
|
void StepperMotor::pulse() {
|
||||||
|
@ -31,7 +30,6 @@ void StepperMotor::pulse() {
|
||||||
chThdSleepMilliseconds(ST_DELAY_MS);
|
chThdSleepMilliseconds(ST_DELAY_MS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void StepperMotor::initialize(brain_pin_e stepPin, brain_pin_e directionPin) {
|
void StepperMotor::initialize(brain_pin_e stepPin, brain_pin_e directionPin) {
|
||||||
position = 0;
|
position = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue