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

Offboard attitude rate control broken #12241

Closed
julianoes opened this issue Jun 11, 2019 · 4 comments
Closed

Offboard attitude rate control broken #12241

julianoes opened this issue Jun 11, 2019 · 4 comments
Assignees
Labels
bug Sim: SITL software in the loop simulation

Comments

@julianoes
Copy link
Contributor

There seems to be a regression for offboard control since 1.9. Starting offboard control, so switching the mode to offboard control does no longer work.

Offboard control gets rejected:

[03:37:30|Warn ] command temporarily rejected (176). (mavlink_commands.cpp:168)
/home/julianoes/src/MAVSDK/src/integration_tests/offboard_attitude.cpp:83: Failure
Expected equality of these values:
  offboard->start()
    Which is: 4-byte object <05-00 00-00>
  Offboard::Result::SUCCESS
    Which is: 4-byte object <01-00 00-00>

To Reproduce

Run the MAVSDK integration test against jMAVSim SITL:

cmake -Bbuild -H. && cmake --build build -j8 && build/src/integration_tests/integration_tests_runner --gtest_filter="SitlTest.OffboardAttitudeRate"
@julianoes julianoes added bug Sim: SITL software in the loop simulation labels Jun 11, 2019
@julianoes julianoes self-assigned this Jun 11, 2019
@julianoes
Copy link
Contributor Author

julianoes commented Jun 11, 2019

git bisect points to 3faab90!

@dagar any idea how this happened?

@dagar
Copy link
Member

dagar commented Jun 11, 2019

No, but I'll look into it. We should really get these tests running against PX4/Firmware directly.

@dagar dagar self-assigned this Jun 11, 2019
@dagar
Copy link
Member

dagar commented Jun 11, 2019

What are the general requirements of offboard control mode? Is it expected that you start streaming some type of offboard setpoint prior to changing modes?

@julianoes
Copy link
Contributor Author

What are the general requirements of offboard control mode? Is it expected that you start streaming some type of offboard setpoint prior to changing modes?

Exactly, you need to have an offboard setpoint set before you can switch to the mode.

dagar added a commit to dagar/PX4-Firmware that referenced this issue Jun 12, 2019
dagar added a commit to dagar/PX4-Firmware that referenced this issue Jun 12, 2019
@dagar dagar closed this as completed in 6816f2a Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Sim: SITL software in the loop simulation
Projects
None yet
Development

No branches or pull requests

2 participants