Skip to content

Commit

Permalink
check acceleration as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Sep 15, 2023
1 parent 389f2e5 commit 6cf385e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class MotionController {
.seq_id = can_msg.seq_id,
.stop_condition = can_msg.request_stop_condition,
.usage_key = hardware.get_usage_eeprom_config().get_distance_key()};
if (!enabled && velocity_steps != 0) {
if (!enabled && velocity_steps != 0 && acceleration_steps != 0) {
enable_motor();
}
queue.try_write(msg);
Expand Down

0 comments on commit 6cf385e

Please sign in to comment.