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

PX4 Subscribes to Trajectory Setpoint from Offboard Mode During RTL #19005

Open
adk4davsys opened this issue Jan 13, 2022 · 2 comments
Open

PX4 Subscribes to Trajectory Setpoint from Offboard Mode During RTL #19005

adk4davsys opened this issue Jan 13, 2022 · 2 comments

Comments

@adk4davsys
Copy link

Describe the bug
Triggering RTL when publishing to trajectory_setpoint topic in Offboard Mode vehicle continues to subscribe to the topic and makes vehicle unstable.

To Reproduce
Steps to reproduce the behavior:

  1. Publish to /fmu/trajectory_setpoint/in within Offboard Mode
  2. Trigger RTL
  3. Vehicle attempts to RTL while still setting position setpoint using the topic /fmu/trajectory_setpoint/in
  4. Eventually vehicle returns to home but does not disarm and continues to point toward /fmu/trajectory_setpoint/in

Expected behavior
My understanding is that triggering RTL should ignore /fmu/trajectory_setpoint/in from Offboard Mode. Shown below are the comparison between publishing to /fmu/trajectory_setpoint/in and not publishing to the topic during RTL.

Log Files and Screenshots
RTL_BEHAVIOR_COMPARISON
RTL_BEHAVIOR_COMPARION_2

Drone (please complete the following information):

  • Based on V1.12.3
  • Pixhawk 4

**Additional Context
This behavior was identified from issue #18983

@benjinne
Copy link
Contributor

benjinne commented Jan 15, 2022

Currently there's a bug with trajectory_setpoint being published by both offboard and flight_tasks I fixed it in this PR #18318 but it's still waiting review

@adk4davsys
Copy link
Author

@benjinne Thank you for following up on this issue. For the time being, I only publish to the topic while the copter is in offboard mode.

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

2 participants