-
-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify FollowMe::Config::min_height_m and follow_dist_m #204
Comments
Yes. I understood so from PX4 Follow Me guide.
As per PX4 Full Parameter Reference for Follow target,
Sure we can. I wanted to keep it consistent with PX4 parameter names as people may be familiar with them. |
@shakthi-prashanth-m @julianoes Thank you. Now I explore this in detail, I think our implementation of the minimums and config is wrong. What we do now is have hard coded minimum values for the various follow parameters. These match whatever the documented default follow-me parameter values are in PX4. So for example, the minimum follow height is set, by default, to 8 metres. We allow a user to set whatever height they like in the config but they will be constrained to the minimum. The problems with this are:
What I think we should do is fetch these minimum values from the PX4 parameters rather than hard coding. Make sense? |
@hamishwillee I agree a user can change follow-me config from QGroundControl. When user sets value out-of-range, he/she will be warned as below.
What we fetch from PX4 may not be minimum values. But may be changed to different values outside (for. eg: from QGroundControl).
We ensure that we start with default Follow Me configuration by applying default parameters during Follow Me startup. I believe that it is safer approach than fetching current PX4 configuration. We can choose what is right way here. |
That is a valid alternative too. In that case though, we should make them something that is set as part of Config. |
@shakthi-prashanth-m @julianoes Did you guys agree what needs to be done with this? |
I think DroneCore would have to use the same xml file for parameter limits in order to know these values. Right now that's not the case so I would vote to have a safe default and make sure this is tested in CI soon. I vote to change names to human readable such as |
It can never know them even with xml file, because they can be changed via GCS. I'm OK with having a safe default as long as we actually set it - as it is now you can get an inconsistency between the vehicle set value and dronecode. If we're going to set it though, then why not make it a configurable default?
+1 |
@hamishwillee sorry I didn't get your point about making default configuration. As said earlier, we already have default configuration set, regardless of current PX4 configuration. |
I shall make changes. |
At the moment we just set some value DroneCode side to control what we send to the vehicle. We don't care what PX4 has set. @julianoes suggested having a sensible minimum - and I hope he means that we should write that minimum to the vehicle (?). |
OK, Yes. Although we set default PX4 Follow Me configuration to start with; users can always override existing configuration before starting Follow Me (optional). |
Yes. Does this override actually change the min height on the vehicle? |
@hamishwillee Yes it does. |
Awesome. I'll go disappear then :-) |
Result name needs to correspond to the result type
This states:
My guess would be that this is actually not minimum follow height, but actual/desired follow height. So when we specify a target position (e.g. 0 AMSL) the height that the drone will follow will be 8m above that - correct?
If so, then this should be renamed
follow_height_m
.We should also rename
follow_dist_m
tofollow_distance_m
for consistency.The text was updated successfully, but these errors were encountered: