Skip to content

Commit 3dcf236

Browse files
Correct the commands label to "target velocity"
I think there is a wrong commands label in this example, line80. According the doTarget function, line 32, this command change target_velocity, not the voltage.
1 parent 4247ac2 commit 3dcf236

File tree

1 file changed

+2
-2
lines changed
  • examples/motion_control/velocity_motion_control/magnetic_sensor/velocity_control

1 file changed

+2
-2
lines changed

examples/motion_control/velocity_motion_control/magnetic_sensor/velocity_control/velocity_control.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void setup() {
7777
motor.initFOC();
7878

7979
// add target command T
80-
command.add('T', doTarget, "target voltage");
80+
command.add('T', doTarget, "target velocity");
8181

8282
Serial.println(F("Motor ready."));
8383
Serial.println(F("Set the target velocity using serial terminal:"));
@@ -103,4 +103,4 @@ void loop() {
103103

104104
// user communication
105105
command.run();
106-
}
106+
}

0 commit comments

Comments
 (0)