Skip to content

Commit 5bbba0c

Browse files
author
Richard Unger
committed
added comments for reverse direction #254
1 parent 2252605 commit 5bbba0c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/motion_control/open_loop_motor_control/open_loop_position_example/open_loop_position_example.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ void setup() {
6262
void loop() {
6363
// open loop angle movements
6464
// using motor.voltage_limit and motor.velocity_limit
65+
// angles can be positive or negative, negative angles correspond to opposite motor direction
6566
motor.move(target_position);
6667

6768
// user communication

examples/motion_control/open_loop_motor_control/open_loop_velocity_example/open_loop_velocity_example.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ void loop() {
6060

6161
// open loop velocity movement
6262
// using motor.voltage_limit and motor.velocity_limit
63+
// to turn the motor "backwards", just set a negative target_velocity
6364
motor.move(target_velocity);
6465

6566
// user communication

0 commit comments

Comments
 (0)