Added: Getting steps remaining on stop

This commit is contained in:
AlexanderHD27
2024-09-26 18:46:44 +02:00
parent 1ad6c75788
commit b2ffcb5d72
4 changed files with 76 additions and 85 deletions

View File

@@ -35,6 +35,9 @@ private:
bool done_flag0_arm;
bool done_flag1_arm;
uint remaining_step_count0;
uint remaining_step_count1;
protected:
void init_pio();
void init_gpio();
@@ -65,6 +68,9 @@ public:
bool wait0(int timeout_ms);
bool wait1(int timeout_ms);
uint get_remaining_steps0();
uint get_remaining_steps1();
};
extern TMC2209_step_dual * g_step_driver_instance;