|
85 | 85 | Stepper::Stepper(int number_of_steps, int motor_pin_1, int motor_pin_2)
|
86 | 86 | {
|
87 | 87 | this->step_number = 0; // which step the motor is on
|
88 |
| - this->speed = 0; // the motor speed, in revolutions per minute |
89 | 88 | this->direction = 0; // motor direction
|
90 | 89 | this->last_step_time = 0; // time stamp in us of the last step taken
|
91 | 90 | this->number_of_steps = number_of_steps; // total number of steps for this motor
|
@@ -116,7 +115,6 @@ Stepper::Stepper(int number_of_steps, int motor_pin_1, int motor_pin_2,
|
116 | 115 | int motor_pin_3, int motor_pin_4)
|
117 | 116 | {
|
118 | 117 | this->step_number = 0; // which step the motor is on
|
119 |
| - this->speed = 0; // the motor speed, in revolutions per minute |
120 | 118 | this->direction = 0; // motor direction
|
121 | 119 | this->last_step_time = 0; // time stamp in us of the last step taken
|
122 | 120 | this->number_of_steps = number_of_steps; // total number of steps for this motor
|
@@ -149,7 +147,6 @@ Stepper::Stepper(int number_of_steps, int motor_pin_1, int motor_pin_2,
|
149 | 147 | int motor_pin_5)
|
150 | 148 | {
|
151 | 149 | this->step_number = 0; // which step the motor is on
|
152 |
| - this->speed = 0; // the motor speed, in revolutions per minute |
153 | 150 | this->direction = 0; // motor direction
|
154 | 151 | this->last_step_time = 0; // time stamp in us of the last step taken
|
155 | 152 | this->number_of_steps = number_of_steps; // total number of steps for this motor
|
|
0 commit comments