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

Plane: support send_extended_sys_state #19137

Merged
merged 1 commit into from Nov 8, 2021

Conversation

IamPete1
Copy link
Member

@IamPete1 IamPete1 commented Nov 3, 2021

Rework of #10698 now we have separate translation logic.

@IamPete1
Copy link
Member Author

IamPete1 commented Nov 3, 2021

Seems to work, tested both SLT and tailsitters using:

long 511 245 100000 
graph EXTENDED_SYS_STATE.vtol_state

{
if (quadplane.in_vtol_mode()) {
QuadPlane::position_control_state state = quadplane.poscontrol.get_state();
if ((state == QuadPlane::position_control_state::QPOS_AIRBRAKE) || (state == QuadPlane::position_control_state::QPOS_POSITION1)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

might want to limit this to only be QPOS_AIRBRAKE we can sometimes spend a while repositioning in QPOS_POSITION1

Copy link
Contributor

@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.

So much nicer than my effort :-)

Copy link
Contributor

@khancyr khancyr left a comment

Choose a reason for hiding this comment

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

It would be nice to have the autotest too!

#endif
};

MAV_LANDED_STATE GCS_MAVLINK_Plane::landed_state() const
Copy link
Contributor

Choose a reason for hiding this comment

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

we could work the takeoff and landing state later

@IamPete1
Copy link
Member Author

IamPete1 commented Nov 4, 2021

The original PR from @peterbarker did have some auto tests. I guess they should still work.....

@khancyr
Copy link
Contributor

khancyr commented Nov 4, 2021

yep, that is why I asked ! specially when the vtol transition seems tricky

@tridge tridge merged commit 7c3de47 into ArduPilot:master Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants