Follow failed: Home position not set
If "Stream GCS Position" is enabled in Application settings, the message "Follow failed: Home position not set" pops up.
System Information
When posting bug reports, include the following information
- Operating System: Windows 10
- QGC Version:
- QGC build: daily
- Flight Controller: SITL
- Autopilot (with version): Ardupilot Copter 4.6.0
Detailed Description
Provide further details about your issue/bug.
Log Files and Screenshots
This will probably happen until takeoff when you get your new home position. But actually I don't see why the vehicle position is needed for the gcs, seems kinda like a trick that assumes GCS and Vehicle are at same altitude initially and then the GCS is always at that altitude. I would think this is not a valid assumption to make and altMetersAMSL from the motion report should be used instead. @DonLakeFlyer thoughts on this? relevant code is here
The code looks like it's related to follow mode. In the stable version is an option Stream GCS Position-only in follow mode. In the daily the option is on/off only. So there shouldn't be any dependency to follow.
I remember a years lasting discussion about follow mode with the Ardupilot folks. I think the code uses the home altitude of the vehicle instead of gps altitude. Assuming gcs and vehicle are both at the same altitude, which is true in most cases. The reason for this trick is that the altitude information is garbage on most smartphones. So the code makes sense, only the error message is confusing and should be changed in "waiting for home" or the like.
first thing to do is to restore the settings #11975
I think the code uses the home altitude of the vehicle instead of gps altitude. Assuming gcs and vehicle are both at the same altitude, which is true in most cases. The reason for this trick is that the altitude information is garbage on most smartphones.
Correct.
The original pull is here: https://github.com/mavlink/qgroundcontrol/pull/8350.
So the code makes sense, only the error message is confusing and should be changed in "waiting for home" or the like.
I'll take a look...