Skip to content
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

Local validation of PX4 parameter values #164

Open
shakthi-prashanth-m opened this issue Nov 16, 2017 · 1 comment
Open

Local validation of PX4 parameter values #164

shakthi-prashanth-m opened this issue Nov 16, 2017 · 1 comment

Comments

@shakthi-prashanth-m
Copy link
Contributor

shakthi-prashanth-m commented Nov 16, 2017

When a plugin perform set_param_float_async(), we send mavlink command to set param values. We can save time by locally validating values if we maintain (Min, Max, Default) range for each parameter may be in an XML file (similar to QGroundControl).

    <parameter default="8.0" name="NAV_MIN_FT_HT" type="FLOAT">
      <short_desc>Minimum follow target altitude</short_desc>
      <long_desc>The minimum height in meters relative to home for following a target</long_desc>
      <min>8.0</min>
      <unit>meters</unit>
      <scope>modules/navigator</scope>
    </parameter>
@julianoes
Copy link
Collaborator

julianoes commented Nov 17, 2017

Good idea! And we already have tinyxml2 included, so we could do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants