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

Add NO_SETPOINT_SET result to Offboard plugin #738

Merged

Conversation

cswkim
Copy link
Contributor

@cswkim cswkim commented May 1, 2019

I think the 2 changed files are the only places that need updating, but I'm not 100% sure. If someone could please verify.

Resolves #732

@julianoes julianoes changed the title Add NO_SETPOINT_SET result to Offboard plugin. Resolves #732 Add NO_SETPOINT_SET result to Offboard plugin May 2, 2019
@@ -459,6 +459,8 @@ Offboard::Result OffboardImpl::offboard_result_from_command_result(MAVLinkComman
return Offboard::Result::COMMAND_DENIED;
case MAVLinkCommands::Result::TIMEOUT:
return Offboard::Result::TIMEOUT;
case MAVLinkCommands::Result::NO_SETPOINT_SET:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, just added.

@@ -67,6 +67,8 @@ const char *Offboard::result_str(Result result)
return "Command denied";
case Result::TIMEOUT:
return "Timeout";
case Result::NO_SETPOINT_SET:
return "No setpoint set";
Copy link
Collaborator

Choose a reason for hiding this comment

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

This one is correct.

@@ -24,6 +24,7 @@ class MAVLinkCommands {
COMMAND_DENIED,
TIMEOUT,
IN_PROGRESS,
NO_SETPOINT_SET,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nono, a MAVLink command can't ever have that result. It's an invention of the SDK :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I see. OK I removed from mavlink command results and offboard_result_from_command_result().

@julianoes julianoes merged commit e3a1060 into mavlink:develop May 3, 2019
@JonasVautherin
Copy link
Collaborator

Yay! Thanks @cswkim!

@cswkim cswkim deleted the add-no-setpoint-set-offboard-result branch May 4, 2019 14:38
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.

Add NO_SETPOINT_SET To Offboard Results
3 participants