Open qiayuanl opened 1 year ago
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
Your code and documents are awesome! Thank you for your sharing.
In SOES_CIA402_AX58100, you set
watchdogcnt
incheck_dc_handler()
. The comments and the variable names indicate that you consider each count ofwatchdogcnt
as a nanosecond.Yet, the
DIG_process(DIG_PROCESS_WD_FLAG)
in eachwhile()
, which subtracts the watchdog value between the duration, which is the processing time ofwhile()
(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?