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

common.xml: Add AHRS commands #376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

valbv
Copy link

@valbv valbv commented Nov 29, 2024

Hi, I thought about making a MAV_CMD_EAHRS_CMD message and passing the flag to the corresponding specific command.
But then when adding other commands I came across a situation where I needed to pass group of parameters.

For example, for the EAHRS "aiding data" commands.
Therefore, I made a separate message for each command.

@valbv
Copy link
Author

valbv commented Nov 29, 2024

Linked PR:
ArduPilot/ardupilot#28485

<param index="6">Empty.</param>
<param index="7">Empty.</param>
</entry>
<entry value="33004" name="MAV_CMD_EAHRS_START_VG3D_CLB_IN_FLIGHT" hasLocation="false" isDestination="false">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's VG3D?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it's internal naming for magnetometer calibration

It's Ok, if I name this
MAV_CMD_EAHRS_START_MAG_CLB_IN_FLIGHT
MAV_CMD_EAHRS_STOPT_MAG_CLB_IN_FLIGHT
?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, if it's generic that's preferred. From what I know, we avoid vendor specific packets or vendor specific acronyms in the common.xml

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed these magnetometer calibration commands from this PR

If this PR will be merged I plan to open the new one with "magnetometer calibration" commands/handler

@valbv valbv force-pushed the eahrscommands branch 2 times, most recently from 7db3aca to 934bdc1 Compare December 15, 2024 23:26
@valbv valbv changed the title common.xml: Add EAHRS commands common.xml: Add AHRS commands Dec 16, 2024
Copy link

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to go into one of ardupilotmega.xml or development.xml. I've pinged someone to work that out.

<!-- AHRS commands (32000 to 32099) -->
<entry value="33000" name="MAV_CMD_AHRS_START" hasLocation="false" isDestination="false">
<description>Send command "start data sending" to the AHRS</description>
<param index="1">Empty.</param>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

param1 should be an instance number, allowing the user to enable/disable specific backends.

<param index="7">Empty.</param>
</entry>
<entry value="33002" name="MAV_CMD_AHRS_ENABLE_GNSS" hasLocation="false" isDestination="false">
<description>Send command "enable GNSS" to the AHRS</description>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<description>Send command "enable GNSS" to the AHRS</description>
<description>Enable GPS use by the AHRS</description>

etc

@@ -2218,6 +2218,47 @@
<param index="6">Empty.</param>
<param index="7">Empty.</param>
</entry>
<!-- AHRS commands (32000 to 32099) -->
<entry value="33000" name="MAV_CMD_AHRS_START" hasLocation="false" isDestination="false">
<description>Send command "start data sending" to the AHRS</description>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<description>Send command "start data sending" to the AHRS</description>
<description>Send command "start data sending" to the AHRS</description>

would be nice to find some neutral term for this. If we were to try to apply this to DCM or EKF, how would we term that operation?

Also... why would we want to do this? The answer to that might inform a better phrase here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Start/stop measuring by AHRS?

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

Successfully merging this pull request may close these issues.

3 participants