implemented fixture mapping (without mapping_table)

This commit is contained in:
2025-06-04 23:58:48 +02:00
parent 91d3966d88
commit 324b69117a
5 changed files with 58 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
#include "stm32g0b1xx.h"
#include <stdint.h>
typedef struct {
GPIO_TypeDef* en_port;
@@ -11,13 +12,15 @@ typedef struct {
uint8_t home_pin;
uint8_t homed:1;
uint8_t trigger_step:1;
int32_t home_position;
int32_t pos;
int32_t endless_rot_integrator;
int32_t speed;
int32_t ramp_to_speed;
uint32_t next_step;
} stepper_T;
#define STEPPER_MAX_SPEED 600
#define STEPPER_MAX_SPEED 400
#define STEPPER_STEPS_PER_ROTATION 3200