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

Deprecate MAV_CMD_GET_HOME_POSITION for MAV_CMD_REQUEST_MESSAGE #1834

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

hamishwillee
Copy link
Collaborator

We're now using MAV_CMD_REQUEST_MESSAGE as the generic getter for messages. This deprecates MAV_CMD_GET_HOME_POSITION and adds info about using MAV_CMD_REQUEST_MESSAGE to HOME_POSITION.

@@ -6396,7 +6397,14 @@
<field type="uint32_t" name="clipping_2">third accelerometer clipping count</field>
</message>
<message id="242" name="HOME_POSITION">
<description>This message can be requested by sending the MAV_CMD_GET_HOME_POSITION command. The position the system will return to and land on. The position is set automatically by the system during the takeoff in case it was not explicitly set by the operator before or after. The global and local positions encode the position in the respective coordinate frames, while the q parameter encodes the orientation of the surface. Under normal conditions it describes the heading and terrain slope, which can be used by the aircraft to adjust the approach. The approach 3D vector describes the point to which the system should fly in normal flight mode and then perform a landing sequence along the vector.</description>
<description>
This message can be requested by sending the MAV_CMD_REQUEST_MESSAGE with param1=242 (or the MAV_CMD_GET_HOME_POSITION command).
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FYI this is the only line that changed in terms of content. The rest is just layout to make it easier to read.

Note, this should work on all stacks because it just uses the one parameter.

Copy link
Member

@TSC21 TSC21 left a comment

Choose a reason for hiding this comment

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

Great! Thanks @hamishwillee

@hamishwillee
Copy link
Collaborator Author

Self approving - discussed in the Dev Call with @auturgy.

@hamishwillee hamishwillee merged commit f357fc7 into master Apr 27, 2022
@hamishwillee hamishwillee deleted the hamishwillee-MAV_CMD_GET_HOME_POSITION branch April 27, 2022 08:00
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.

None yet

2 participants