YUNEEC / Yuneec-SDK-iOS-Example

This is a proof-of-concept iOS app built on the of the Yuneec SDK.
BSD 3-Clause "New" or "Revised" License
7 stars 6 forks source link

Body Mode results in crash if started immediately #6

Closed steven-t-h closed 6 years ago

steven-t-h commented 7 years ago

@julianoes I've been experimenting with creating some sample apps using the iOS SDK and came across an issue I'm seeing in this application as well. If I try to initiate Offboard while in Body mode the unit immediately flips and crashes. However, if I start offboard in NED then switch I don't have this issue.

Any ideas?

julianoes commented 7 years ago

Hi @steven-t-h. Is this in the simulator or with the real drone?

I have seen crashes with offboard before, bu we postponed the support for it until later, and therefore it is currently not supported.

steven-t-h commented 7 years ago

This is in the SITL sim. Thankfully I've been running simulations of every feature before testing with the actual unit. NED control is pretty difficult to control for users used to our "Angle" modes so I'm trying to avoid it. We'll want Body working asap when the SDK is public.

I'll poke around a bit more and see if I can locate the cause.

It's simple to verify with the simulation using the sample app. Arm>Takeoff then toggle to Body mode and hit Start. As I mentioned, the strangest part was that starting Offboard works great when in NED first, and you can then toggle between the modes with no issue.

julianoes commented 7 years ago

@steven-t-h ok I'm relieved :)

Yes, we'll need to look into it. Thanks for the info, that helps when I'll debug it.

steven-t-h commented 7 years ago

Sounds good, I know it's not a priority right now, but worth noting as we move along. I'll pass along anything I find as I look into it.

julianoes commented 7 years ago

@steven-t-h Fix coming up!

julianoes commented 6 years ago

This has been resolved, closing.