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

guided_target: accept position-target-global-int messages #1780

Merged
merged 1 commit into from
Sep 11, 2022

Conversation

snktshrma
Copy link
Contributor

This PR attempts to implement the suggestions in the PR #1184 by @rmackay9 to allow mavros to accept POSITION_TARGET_GLOBAL_INT message from FCU or GCS.

There were suggestions by @TSC21 and @vooon to implement a separate plugin for the purpose and use POSITION_TARGET_GLOBAL_INT message type.

There's an issue I found:

  • After commanding the vehicle in off-board mode to a specific location, vehicle tends to go to a specific position(different from what it is commanded) everytime.

Hoping for a resolution to this issue.

Copy link
Member

@vooon vooon left a comment

Choose a reason for hiding this comment

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

I see only few minor style fixes, but overall looks good.

But i'd like to have some more meaningful name for the plugin. "Offboard" looks messy as it doesn't say what it does.

@vooon vooon added this to the Version 1.14 milestone Sep 7, 2022
@snktshrma
Copy link
Contributor Author

But i'd like to have some more meaningful name for the plugin. "Offboard" looks messy as it doesn't say what it does.

Thanks @vooon for the review! Can "guided_target" name be used instead?

@vooon
Copy link
Member

vooon commented Sep 7, 2022

@snktshrma yes, that sounds better, but i'd like to hear others too. CC @rmackay9, @TSC21 .

@rmackay9
Copy link
Contributor

rmackay9 commented Sep 8, 2022

Hi, yes, I'm happy with the name "guided_target". I'm very happy to see this plugin.

@snktshrma
Copy link
Contributor Author

Thanks @rmackay9 @vooon for review! I have made the required changes

@snktshrma snktshrma changed the title offboard_position: accept position-target-global-int messages guided_target: accept position-target-global-int messages Sep 8, 2022
Copy link
Member

@vooon vooon left a comment

Choose a reason for hiding this comment

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

Looks good, just a few style fix needed.

mavros_extras/src/plugins/guided_target.cpp Show resolved Hide resolved
mavros_extras/src/plugins/guided_target.cpp Show resolved Hide resolved
mavros_extras/src/plugins/guided_target.cpp Outdated Show resolved Hide resolved
@snktshrma
Copy link
Contributor Author

@vooon thanks for the review! Made the required changes

Update guided_target.cpp

Update guided_target.cpp

Update mavros_plugins.xml

Update CMakeLists.txt

Added offboard_position.cpp

Update apm_config.yaml

Update offboard_position.cpp

Update offboard_position.cpp

Rename offboard_position.cpp to guided_target.cpp

Update CMakeLists.txt

Update mavros_plugins.xml

Update apm_config.yaml

Update guided_target.cpp
@shubham-shahh
Copy link
Contributor

Hi @snktshrma can you please elaborate upon the issue you have mentioned in the description of this PR?

@snktshrma
Copy link
Contributor Author

snktshrma commented Sep 11, 2022

Hi @shubham-shahh!
So the actual issue is when we set the target position for the vehicle, it doesn't go to that place. Instead it goes to only a specific position different from what's specified.
I'll create an issue for this and try to add a video of this

@shubham-shahh
Copy link
Contributor

Hi @shubham-shahh!
So the actual issue is when we set the target position for the vehicle, it doesn't go to that place. Instead it goes to only a specific position different from what's specified.
I'll create an issue for this and try to add a video of this

Sure, a video would be great, because I'm still not clear about the issue. Also is it only appearing in SILT? or on hardware?

@snktshrma
Copy link
Contributor Author

@shubham-shahh I'll upload a video soon!
I've not tested this part yet on hardware. It's appearing in SITL

@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/report-an-error-when-rotorcraft-flys-warn-positiontargetglobal-failed-because-no-origin/29627/4

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