mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.22k stars 3.56k forks source link

keep the vehicle1 in its original state while controlling vehicle 2 #10898

Open Hmilzy opened 10 months ago

Hmilzy commented 10 months ago

Expected Behavior

I want to control multiple drones separately in QGC.

Current Behavior

When connecting two drones like vehicle 1 and 2, control one to fly, and the other will automatically enter the return landing mode. But I just want the other drone to do what it needs to do or hover

Steps to Reproduce:

  1. I conducted multi vehicles(vehicle 1 and 2) simulations in jmavsim
  2. Open the QGC, connect to the two vehicles successfully
  3. Press the takeoff button on the left side of QGC to make vehicle 1 takeoff
  4. Press the switch button in the upper right corner of the screen to switch to vehicle 2
  5. Similarly, let vehicle 2 takeoff
  6. At that moment, I noticed that vehicle1 seemed to have lost its connection and entered landing mode automatically. I don't know why this is happening.

System Information

When posting bug reports, include the following information

Detailed Description

When I took off vehicle 2, vehicle 1 seemed to lose connection and landed automatically I wonder if switching vehicles through the button in the upper right corner will cause a loss of connection ?

I just want to keep the vehicle1 in its original state while controlling vehicle 2. Has anyone encountered this kind of problem before? How should I solve it. Please help! Thank you very much!!

Log Files and Screenshots

zdanek commented 9 months ago

@Hmilzy I have a fix for that. I've added switching to Guided (except for SmartRTH, RTH and Land). This makes drone waits patiently for user to switch. Or, if it was during mission, it will still doing it's steps.

https://github.com/zdanek/qgroundcontrol/commit/0e743413df21fa4221ac9f0c4e4435abbc9c4e89