set_on_homming_completed
This function registers a callback function that automatically checks whether homing has been completed when the robot controller is in homing control mode. Use it to run your own code automatically when this event occurs.
Definition
DRFLEx.h within class CDRFLEx, public section
void set_on_homming_completed(TOnHommingCompletedCB pCallbackFunc) {
_set_on_homming_completed(_rbtCtrl, pCallbackFunc);
};
Parameter
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
pCallbackFunc |
Refer to definition of callback function |
Return
None
Note
Example
void OnHommingCompletedCB()
{
// Generates a message for the completion of homing
printf("homing completed\n");
}
drfl.set_on_homming_completed(OnHommingCompletedCB);
When registered, this callback automatically executes after the homing process is completed. The example prints “homing completed” to the console.