Skip to content

Commit 9b0c133

Browse files
committed
rename set to link
1 parent b9fa9ee commit 9b0c133

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/motion_control/custom_motion_control/custom_motion_control.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

src/common/base_classes/FOCMotor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)