Detection where Watchdog timeouts occure?
Posted: Tue Sep 06, 2016 12:59 pm
Hey!
Currently I'm working on a project to get the SitAw-modul functional. Topic: viewtopic.php?f=6&t=2115
I think I have a good concept for the flying/-landing-state-issue (by implementing the estimated Altitude). My Code (github: https://github.com/Koschu/Crazyflie-Sit ... ementation) stands compiling and flashing steps, but when the FreeFallDetection triggers, a watchdog-timeout occures and the red light blinks 5 times. If i get it right, this indicates a loop in the code or the function is too large/complex for the processor.
It seems like the very problem is the implementation of the estimated Altitude. As soon, as I doubledash the line "High=GetEstimatedPositionAsFunction ();" (line 167 in sitaw.c) and all connected lines, the CF runs without a timeout (but without the important function, too).
So I have 2 Questions:
First: Is there an opportunity to find the reason for a watchdog timeout without using the debug adapter (which I did not buy yet)?
Second (just for those who are interested in this project): Any Idea what could have caused this specific watchdog timeout?
Currently I'm working on a project to get the SitAw-modul functional. Topic: viewtopic.php?f=6&t=2115
I think I have a good concept for the flying/-landing-state-issue (by implementing the estimated Altitude). My Code (github: https://github.com/Koschu/Crazyflie-Sit ... ementation) stands compiling and flashing steps, but when the FreeFallDetection triggers, a watchdog-timeout occures and the red light blinks 5 times. If i get it right, this indicates a loop in the code or the function is too large/complex for the processor.
It seems like the very problem is the implementation of the estimated Altitude. As soon, as I doubledash the line "High=GetEstimatedPositionAsFunction ();" (line 167 in sitaw.c) and all connected lines, the CF runs without a timeout (but without the important function, too).
So I have 2 Questions:
First: Is there an opportunity to find the reason for a watchdog timeout without using the debug adapter (which I did not buy yet)?
Second (just for those who are interested in this project): Any Idea what could have caused this specific watchdog timeout?