Closed droidmonkey closed 10 years ago
To reproduce this issue (on Android):
I've observed the same behavior via iOS. Twice now I've switched apps and the motors when to 100% a few seconds later. Luckily (except for my fingers) I was holding the bot both times.
I found the issue, doing a compare between MultiWii 2.2 and this code I found that they activated the fail-safe procedures. What that means is if comms are lost it will try to gracefully land the helicopter. Problem is this is undesirable behavior if we actually intend to end use of the copter.
This can be fixed in one of three ways:
I can submit pull requests for either of these actions, what is the opinion of the Flexbot staff?
In fact, in unlocked state,throttle went to 20% (failsafe throttle) for about 5 senconds after communication disconnected.
In most RC systems, if receiver is failed to get signal from transmitter, it switchs to failsafe mode.
In failsafe mode, the throttle is setted to a desired value.
Yeah, if the conncetion is turned off by users, it should switch off the motors instead of going to failsafe mode,.
But in some special cases, for example, the drone fights too far and the connection is failed, it should go to failsafe mode: set the throttle to a relatively small value for a few seconds and let the drone can come down softly, then switch off motors.
Maybe, it is too much that the failsafe throttle was 20%. Now the new code has refined failsafe mode. In the new failsafe mode, failsafe throttle will be 5% if the current throttle is more than failsafe throttle(most likely the drone is in flighting), and 0% if the current throttle is less than failsafe throttle.
It is still possible doing more work on failsafe mode, just like auto locking when the throttle is less than a small value for a few senconds, and as Droidmonkey said that the app needs to issue a "DISARM" command before it closes.
Thanks for reporiting the bug.
Thanks, I updated the title of the issue. I will create a new issue for the app to add a disarm on close.
I think the recent change to not go into failsafe if the throttle is already at 0 will resolve the problem. I'll try updating my bots and report back when I do.
I tested the update and it seems to work. turn off throttle and close the app, nothing happens. turn the throttle way up and close the app, motors spin slower to come in for landing.
Thanks for the update guys! My fingers feel a little safer now =)
If you are connected to the flexbot and close the app, the throttles go to 100% for a short duration. Not sure if this is a problem with the app or the firmware. I am posting in both places to raise awareness.