Skip to content

Commit

Permalink
added comments for reverse direction #254
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Unger committed Sep 3, 2023
1 parent 2252605 commit 5bbba0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ void setup() {
void loop() {
// open loop angle movements
// using motor.voltage_limit and motor.velocity_limit
// angles can be positive or negative, negative angles correspond to opposite motor direction
motor.move(target_position);

// user communication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ void loop() {

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

// user communication
Expand Down

0 comments on commit 5bbba0c

Please sign in to comment.