We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f890876 commit 178e239Copy full SHA for 178e239
examples/change_direction/change_direction.ino
@@ -79,7 +79,7 @@ void loop() {
79
// change direction each 1000 loop passes
80
target_velocity *= (t >= 1000) ? -1 : 1;
81
// loop passes counter
82
- t = (t > 1000) ? t+1 : 0;
+ t = (t >= 1000) ? 0 : t+1;
83
84
85
// iterative function setting the outter loop target
@@ -91,7 +91,7 @@ void loop() {
91
92
// function intended to be used with serial plotter to monitor motor variables
93
// significantly slowing the execution down!!!!
94
- motor_monitor();
+ //motor_monitor();
95
}
96
97
// utility function intended to be used with serial plotter to monitor motor variables
0 commit comments