RaccoonlabDev / mini_v2_node

Mini v2 node Cyphal/DroneCAN application example
GNU General Public License v3.0
8 stars 4 forks source link

Implement CAN Reinitialization on Initialization Failure #82

Open AsiiaPine opened 2 weeks ago

AsiiaPine commented 2 weeks ago

Current Behavior:

When a CAN initialization failure occurs, the node blinks blue and does not send any data.

Desired Behavior:

Implement a mechanism to automatically attempt reinitialization of the CAN interface after a failure. This would allow the node to recover from transient issues and resume normal operation without requiring manual intervention.

Acceptance Criteria:

  1. The node should attempt to reinitialize the CAN interface if the initial initialization fails.

  2. The system shouldhave non-blue blink color during the reinitialization attempts.

  3. If reinitialization is successful, the node should resume normal operation and start blinking blue.

  4. If reinitialization repeatedly fails after a predefined number of attempts, log an error or take further corrective action as needed.