mavlink / qgroundcontrol

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

Fix console warnings shown when adding complex land mission item #12039

Closed gillamkid closed 2 weeks ago

gillamkid commented 4 weeks ago

Description

Fix console warnings shown when adding complex land mission item

  1. Remove references to non existent useLoiterToAlt.visible property
  2. Don't add _mouseArea to the map (the action was failing and isn't necessary)

Steps to reproduce issue fixed with this PR

  1. Run a plane sim
    cd PX4-Autopilot
    make px4_sitl gazebo-classic_plane
  2. Run QGC master and create a mission with a complex land (use left tool bar to add a "Tokeoff" item and then use the left tool bar to add a "Land" item, which will be a FWComplexLand since a plane is connected to QGC.
  3. You should see this warning in the QtCreator log (This PR removes the warning) on-create
  4. If you upload the mission to the vehicle and restart QGC, there is another warning that appears on-open

Steps to test fix

Run the steps in "Steps to reproduce issue" only use this PR's branch. The difference will be the warning messages described will no longer show up.

Sponsor

This contribution was sponsored by Firestorm 654d4f9476ff2a38f37e9ab9_firestorm-homepage-share-img-2