add some features to 3steppersLB

This commit is contained in:
2023-02-21 11:55:42 +03:00
parent f880421d9e
commit ab5f7bc87b
19 changed files with 261 additions and 51 deletions

View File

@@ -23,6 +23,14 @@
#include <stm32f0.h>
#include "commonproto.h"
#ifndef FALSE
#define FALSE (0)
#endif
#ifndef TRUE
#define TRUE (1)
#endif
// amount of tries to detect motor stall
#define NSTALLEDMAX (5)
// amount of steps to detect stalled state
@@ -55,6 +63,7 @@ void addmicrostep(uint8_t i);
void encoders_UPD(uint8_t i);
void init_steppers();
void update_stepper(uint8_t i);
int32_t encoder_position(uint8_t i);
int setencpos(uint8_t i, int32_t position);
errcodes setmotpos(uint8_t i, int32_t position);