Breadcrumbs

CDRFLEx.set_on_monitoring_safety_state

Features

This is a function to register a callback function to automatically check when the safety state of the controller is updated. This is useful when writing functions that should be executed automatically.

Parameter

Parameter Name

Data Type

Default Value

Description

pCallbackFunc

TOnMonitoringSafetyStateCB

-

Refer to definition of callback function

Return

None.

Example

C++
void OnMonitoringSafetyStateCB (SafetyState iState)
{
    //When sw module is updated
}

int main()
{
    Drfl.set_on_monitoring_safety_state(OnMonitoringSafetyStateCB);
}