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

Where is Offboard Control in FixedWingPositionControl.cpp? #7481

Closed
mago3421 opened this issue Jun 26, 2017 · 3 comments
Closed

Where is Offboard Control in FixedWingPositionControl.cpp? #7481

mago3421 opened this issue Jun 26, 2017 · 3 comments

Comments

@mago3421
Copy link

mago3421 commented Jun 26, 2017

I am running a multi-plane SITL simulation to test offboard mode. I command one plane by constantly sending it SET_POSITION_TARGET_LOCAL_NED MAVLink messages and then setting it to offboard mode. However, the plane does not seem to be responding to these MAVLink commands despite being in offboard mode. The behavior seems like the heading is locked despite having been commanded a goto point.

So, I wrote a debugging application to view the internal uORB messages. This application shows the is_offboard_mode_enabled flag is true and the is_auto_mode_enabled flag is false. The position_setpoint_triplet message also updates the current position_setpoint as I command new waypoints to it. In fact, I check the valid flag just to be sure.

This is all normal but looking at FixedWingPositionControl.cpp it seems that the only code to handle waypoints is inside an if statement that is only executed if the vehicle is in auto mode and the current setpoint_position is valid.

Is this the only place where waypoints are handled? Is there code missing which handles offboard waypoints? I am trying to learn in the firmware where and how waypoints are commanded but I can't recognize or find the code where this happens.

@PX4BuildBot
Copy link
Collaborator

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

@evercltech
Copy link

evercltech commented Feb 21, 2018 via email

@evercltech
Copy link

evercltech commented Feb 21, 2018 via email

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

No branches or pull requests

3 participants