RoboCupULaval / RobotMCU

http://robocupulaval.com/
5 stars 0 forks source link

Robot stop moving randomly #24

Closed PhiBabin closed 6 years ago

PhiBabin commented 6 years ago

I saw it with the delta, but it might happen with the gamma. After a while the robot will stop receving wireless command. With bluetooth I detected that the ctrl loop was still running. [] check if it's the communication that hang or crash [] check if the bug can be reproduce while the robot is immobile

PhiBabin commented 6 years ago

The communication tasks is still running after the bug happen. The NRF's register seem to has been resetted. For example, the nrf channel is resetted. The current fix is if we don't received any package for 1 secondes, we check the nrf's register, if there are corrupted, we rexecute nrf_init()

PhiBabin commented 6 years ago

The fix works