qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

keep the vehicle1 in its original state while controlling vehicle 2

Open Hmilzy opened this issue 2 years ago • 1 comments

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

  • Operating System: Ubuntu
  • QGC Daily Build: version 4.2.9

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

  • Screenshots of Initial simulation: QGC successfully connected to the vehicles 多级仿真初始

  • Screenshots of Error condition: We can see from the right side of the screenshot that vehicle 2 is taking off but vehicle 1 is returning to land automatically. This is where I don't understand. 多机仿真错误图

Hmilzy avatar Dec 06 '23 09:12 Hmilzy

@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

zdanek avatar Dec 14 '23 22:12 zdanek