Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct Stepper
- {
- int direction; // Direction of rotation
- unsigned long step_delay; // delay between steps, in ms, based on speed
- int number_of_steps; // total number of steps this motor can take
- int step_number; // which step the motor is on
- uint32_t last_step_time; // time stamp in us of when the last step was taken
- int steps_left; // steps left to take
- uint8_t operate; //operating mode
- uint8_t flag; //working flag
- float flow; // percentage valve open
- }st_mot;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement