Skip to content

Commit 523c560

Browse files
committed
Minor edit to Follow Velocity example
1 parent 650db22 commit 523c560

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/ClearPathModeExamples/ClearPath-MC Series/FollowDigitalVelocity/FollowDigitalVelocity.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bool CommandVelocity(int commandedVelocity) {
152152
}
153153

154154
// Delays to send the correct filtered direction.
155-
delay(INPUT_A_FILTER);
155+
delay(2 + INPUT_A_FILTER);
156156

157157
// Find the scaling factor of our velocity range mapped to the PWM duty
158158
// cycle range (255 is the max duty cycle).
@@ -164,7 +164,6 @@ bool CommandVelocity(int commandedVelocity) {
164164
// Command the move.
165165
motor.MotorInBDuty(dutyRequest);
166166

167-
Serial.println("Move Done");
168167
return true;
169168
}
170169
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)