Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watchdog in zuuu hal. #177

Open
simheo opened this issue May 2, 2023 · 1 comment
Open

Watchdog in zuuu hal. #177

simheo opened this issue May 2, 2023 · 1 comment
Assignees

Comments

@simheo
Copy link
Member

simheo commented May 2, 2023

We would need to catch timeouts from the VESC, for example when we make a mistake on the mobile base version in reachy.yaml.

@simheo
Copy link
Member Author

simheo commented May 2, 2023

Quote from Rémi :

"J'ai pas creusé mais je parie qu'au moment où on parle au VESC, il se passe bcp trop de temps. Le fix que j'imagine c'est de créer un "Watch dog", en gros un thread à part qui vérifie toutes les 500ms qu'une variable a été mise à jour, et si non, il rédige un warning sur le logger. Et à chaque boucle de lecture+écriture faite par la HAL, on maj cette variable quoi
J'ai déjà des comportements de robustesse autour de la com, mais plus basé sur le fait que des fois la lecture fail et on a des "None". Et en gros ça c'est ok quand ça arrive de temps en temps, mais si ça reste à None trop longtemps -> Emergency stop
L'histoire du watch dog c'est nouveau comme mécanisme, faut se poser et le faire bien."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants