The failsafe mode does not work cause of the rcSerialCount decreases to 0 if the controller disconnects. If its 0 the code sets the input values to 1500 (see #16 ).
if ((failsafeCnt > (5*FAILSAFE_DELAY)) && f.ARMED) {
These changes will force the copter into failsafe mode as soon as rcSerialCount reaches 0 and FAILSAFE_DELAY passed by.
I did some synthetic testing (not really flying) yesterday and it seems to be working. With this changes it should be safe to fly outside without any ceiling.
The failsafe mode does not work cause of the rcSerialCount decreases to 0 if the controller disconnects. If its 0 the code sets the input values to 1500 (see #16 ).
To fix this we have to do some changes:
The failsafe mode must be enabled :-) https://github.com/koenkooi/multiwii-firmware/blob/pruts/config.h#L577
The normal RC should be disabled by inserting #if !defined(RC_TINY) after line https://github.com/koenkooi/multiwii-firmware/blob/pruts/RX.cpp#L424 and the #endif after line https://github.com/koenkooi/multiwii-firmware/blob/pruts/RX.cpp#L440 should look like this:
And last but not least I think there is a bug in the failsafe code. https://github.com/koenkooi/multiwii-firmware/blob/pruts/MultiWii.cpp#L815 It should look like this (see the braces) ?!
These changes will force the copter into failsafe mode as soon as rcSerialCount reaches 0 and FAILSAFE_DELAY passed by.
I did some synthetic testing (not really flying) yesterday and it seems to be working. With this changes it should be safe to fly outside without any ceiling.