I am pouring thru all of the C code for ArduPilot and get most of it. I am having some difficulty understanding all that is done in the FailSafe code. Can anyone summarize what all is going on or point me to a reference?

Thanks

Views: 10

Reply to This

Replies to This Discussion

As you no doubt figured out, that is just for the attiny processor on the board. It uses an interrupt-driven process to watch the PWM on the enable channel, looking for signals in three ranges: down, middle and up. It then sets Atmega pins 4 and 5 and the multiplexer switch pin high or low depending on which state it sees.
Yes I saw the 200us timer interrupt. But there is an external interrupt and the Watch Dog Timer which I assume interrupts every sec to reset a lockup? What is the external interrupt?

Sorry for all the questions...trying to understand all of the code line by line.

RSS

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The third round was a reliablilty/aerial photography round for both planes and copters, which is now closed. Stay tuned for the next round, beginning soon.

A list of all T3 contests is here

 

© 2012   Created by Chris Anderson.

Badges  |  Report an Issue  |  Terms of Service