state_led_reset (Manual Mode)

This section explains how to use state_led_reset during Manual (Teach) operations. This function resets the State LED to its default controller-defined rule. It is typically used when the LED color has been customized (via set_state_led_color) and needs to return to standard behavior reflecting system state.

Typical usage

  • Revert LED behavior after custom manual-mode feedback (e.g., after color change).

  • Restore LED control to the robot controller’s internal rule logic.

  • Use at the end of teaching or before switching to automatic mode.

Example

drfl.open_connection("192.168.137.100");

if (drfl.state_led_reset())
    printf("[LED] LED state reset to default controller rule.\n");
else
    printf("[ERROR] Failed to reset LED state.\n");

When called, this function restores the LED to its controller-managed mode, removing any manual color overrides applied during teaching.

Tips

  • Call after using set_state_led_color to restore default LED behavior.

  • Useful at the end of manual teaching to indicate system standby.

  • Combine with set_state_led_off for clear on/off transitions.