mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-03-22 01:31:21 +03:00
3steppersLB: seems like independent moving is OK
This commit is contained in:
@@ -38,11 +38,12 @@ typedef enum{
|
||||
} stp_state;
|
||||
|
||||
// end-switches reaction
|
||||
typedef enum{
|
||||
enum{
|
||||
ESW_IGNORE, // don't stop @ end-switch
|
||||
ESW_ANYSTOP, // stop @ esw in any moving direction
|
||||
ESW_STOPMINUS // stop only in negative moving
|
||||
} esw_react;
|
||||
ESW_STOPMINUS, // stop only in negative moving
|
||||
ESW_AMOUNT // number of records
|
||||
};
|
||||
|
||||
// find zero stages: fast -> 0, slow -> +, slow -> 0
|
||||
|
||||
@@ -57,7 +58,12 @@ errcodes getpos(uint8_t i, int32_t *position);
|
||||
errcodes getremainsteps(uint8_t i, int32_t *position);
|
||||
errcodes motor_absmove(uint8_t i, int32_t abssteps);
|
||||
errcodes motor_relmove(uint8_t i, int32_t relsteps);
|
||||
errcodes motor_relslow(uint8_t i, int32_t relsteps);
|
||||
errcodes motor_goto0(uint8_t i);
|
||||
|
||||
uint8_t geteswreact(uint8_t i);
|
||||
|
||||
void emstopmotor(uint8_t i);
|
||||
void stopmotor(uint8_t i);
|
||||
stp_state getmotstate(uint8_t i);
|
||||
void process_steppers();
|
||||
|
||||
Reference in New Issue
Block a user