mavlink / MAVSDK-Java

MAVSDK client for Java.
68 stars 40 forks source link

How to stop manual control? #101

Closed xumeng367 closed 2 years ago

xumeng367 commented 2 years ago

When i start manual contorl ,i call drone.getManualControl().startPositionControl(), but no stop method,so when stop call drone.getManualControl().setManualControlInputI(), the drone will lost control and return go home?

julianoes commented 2 years ago

Yes, that's correct. If you no longer set the manual control input, it should detect it as a timeout and trigger the failsafe action configured for RC loss.

xumeng367 commented 2 years ago

How do I hover the drone and then execute a mission?

julianoes commented 2 years ago

You send a takeoff using action->takeoff(), then you do mission->start_mission(). I would first try these things out in simulation and also using QGC to learn more about how it works.