#include <speed_cntr.h>
Contains data used by timer interrupt to calculate speed profile. Data is written to it by move(), when stepper motor is moving (timer interrupt running) data is read/updated when calculating a new step_delay
Definition at line 30 of file speed_cntr.h.
Data Fields | |
signed int | accel_count |
Counter used when accelerateing/decelerateing to calculate step_delay. | |
unsigned int | decel_start |
What step_pos to start decelaration. | |
signed int | decel_val |
Sets deceleration rate. | |
unsigned char | dir: 1 |
Direction stepper motor should move. | |
signed int | min_delay |
Minimum time delay (max speed). | |
unsigned char | run_state: 3 |
What part of the speed ramp we are in. | |
unsigned int | step_delay |
Peroid of next timer delay. At start this value set the accelration rate. |
|
Counter used when accelerateing/decelerateing to calculate step_delay.
Definition at line 44 of file speed_cntr.h. Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt(). |
|
What step_pos to start decelaration.
Definition at line 38 of file speed_cntr.h. Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt(). |
|
Sets deceleration rate.
Definition at line 40 of file speed_cntr.h. Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt(). |
|
Direction stepper motor should move.
Definition at line 34 of file speed_cntr.h. Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt(). |
|
Minimum time delay (max speed).
Definition at line 42 of file speed_cntr.h. Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt(). |
|
What part of the speed ramp we are in.
Definition at line 32 of file speed_cntr.h. Referenced by speed_cntr_Init_Timer1(), speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt(). |
|
Peroid of next timer delay. At start this value set the accelration rate.
Definition at line 36 of file speed_cntr.h. Referenced by speed_cntr_Move(), and speed_cntr_TIMER1_COMPA_interrupt(). |