Skip to content

Commit cbe6aac

Browse files
authored
Fixed Acceleration Issue in Command Parser Example
1 parent 2d8bd0b commit cbe6aac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microchip_Examples/SerialCommExamples/ClearCoreCommandProtocol/ClearCoreCommandProtocol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ int main() {
576576
//verify limit is valid, store, then propagate the change to the motor
577577
if (MIN_ACCEL_LIMIT<=limit_in && limit_in<=MAX_ACCEL_LIMIT){
578578
accelerationLimits[motorNum_in] = limit_in;
579-
motors[motorNum_in]->AccelMax(velocityLimits[motorNum_in]);
579+
motors[motorNum_in]->AccelMax(accelerationLimits[motorNum_in]);
580580
SendFeedback(FB_COMMAND_OK);
581581
} else {
582582
SendFeedback(FB_ERR_LIMIT_OUT_OF_BOUNDS);

0 commit comments

Comments
 (0)