File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
examples/motion_control/custom_motion_control Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ void setup() {
5757 current_sense.linkDriver (&driver);
5858
5959 // set the custom control method
60- motor.setCustomMotionControlMethod (positionPControl);
60+ motor.linkCustomMotionControl (positionPControl);
6161 // set control loop type to be used
6262 motor.controller = MotionControlType::custom;
6363 // set the torque control type to voltage control (default is voltage control)
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ class FOCMotor
374374 * @note the custom control method has to be defined by the user and should follow the signature: float controlMethod(FOCMotor* motor, float target)
375375 * @param controlMethod - pointer to the custom control method function defined by the user
376376 */
377- void setCustomMotionControlMethod (float (*controlMethod)(FOCMotor* motor, float target)){
377+ void linkCustomMotionControl (float (*controlMethod)(FOCMotor* motor, float target)){
378378 customMotionControlCallback = controlMethod;
379379 }
380380
You can’t perform that action at this time.
0 commit comments