-
Notifications
You must be signed in to change notification settings - Fork 291
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
base: master
Are you sure you want to change the base?
Conversation
Linked PR: |
message_definitions/v1.0/common.xml
Outdated
<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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's VG3D?
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
7db3aca
to
934bdc1
Compare
There was a problem hiding this 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.
message_definitions/v1.0/common.xml
Outdated
<!-- 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> |
There was a problem hiding this comment.
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.
message_definitions/v1.0/common.xml
Outdated
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<description>Send command "enable GNSS" to the AHRS</description> | |
<description>Enable GPS use by the AHRS</description> |
etc
message_definitions/v1.0/common.xml
Outdated
@@ -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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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.
There was a problem hiding this comment.
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?
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.