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 is not working #5

Open
qiayuanl opened this issue Dec 6, 2022 · 1 comment
Open

Watchdog is not working #5

qiayuanl opened this issue Dec 6, 2022 · 1 comment

Comments

@qiayuanl
Copy link

qiayuanl commented Dec 6, 2022

Your code and documents are awesome! Thank you for your sharing.

In SOES_CIA402_AX58100, you set watchdogcnt in check_dc_handler(). The comments and the variable names indicate that you consider each count of watchdogcnt as a nanosecond.

Yet, the DIG_process(DIG_PROCESS_WD_FLAG) in each while(), which subtracts the watchdog value between the duration, which is the processing time of while() (dozens of micorsenconds in my case). So the watchdog value is almost never below zero.

I am wondering there's any misunderstanding of the program about watchdog in your code?

@qiayuanl qiayuanl changed the title Watchdog is not working. Watchdog is not working Dec 6, 2022
@kubabuda
Copy link
Owner

kubabuda commented Jan 7, 2023

Well, in normal operation watchdog value is expected not to reach zero.
To be honest, I have not done final parameter tweaking. This value is from bringup stage, when I was mostly concerned with making it large enough, so that ESC would not reset itself in loop. This surely can be done better

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