-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
WARN [mc_pos_control] Offboard activation failed with error: Activation Failed #14786
Comments
The issue I've seen last is microsoft/AirSim#2477 There it's also mentioned that the sensor bitmask interface that allows publishing different sensors at different timings is likely the cause. I don't know the exact details but @TSC21 might know where it's standing. |
@lovettchris Out of curiosity, does this mean that mission mode is functional with the branch you mentioned? |
@MaEtUgR , this checkin adds the bitmasks on HIL_SENSOR so the code in AirSim is now the same as the jMavSim code. |
@Jaeyoung-Lim , yes AirSim now works well with PX4 v1.10.1 in SITL with QGroundControl missions, but this issue points out that things don't work in PX4 master branch. You can test it with the binaries I provided: |
Oh, this is interesting, on v1.11.0-beta I am also getting these warnings, but the AirSim flight is working normally.
So perhaps these warnings are a red herring, and there may be some other problem with master branch that is not understood yet... |
On master offboard control definitely doesn't work, but also master HITL also doesn't work, the drone connects but refuses to arm. So I wonder if some breaking changes have happened in the mavlink protocol ? |
Indeed I see lots of changes in mavlink_receiver.cpp to do with how it is processing HIL_SENSOR data. It's interesting that mavlink_receiver.cpp, MavlinkReceiver::handle_message_hil_sensor doesn't seem to care about fields_updated... AirSim is not generating termperature so I wonder if that is putting the _px4_baro into a bad state... |
Hey, ok, I updated AirSim mavlink headers and fixed some other bugs in AirSim and now I can get it to fly with PX4 master bits. But the flight was kinda wonky and I got lots of warnings like this which is new: See AirSim Pull Request |
But then sometimes it does this in the middle of the offboard flight, and the drone crashes:
|
I'm also getting a lot of these:
Despite the fact that I'm setting these parameters:
Previous versions allow me to fly without RC so long as I set the above parameters (which AirSim does by default). |
I updated my AirSim binaries for testing this: (built with the above AirSim PR #2649 already). |
Oh, wow, this one is interesting, the flight completed and the PX4 took over the landing process:
Then it went bonkers during landing, drone flipped and crashed. See https://logs.px4.io/plot_app?log=7e05515c-7518-4a50-aabe-c3ab5c298886 |
@lovettchris It could be related to the message in your screenshot. I will try to reproduce it
|
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Should be fixed with #17725. |
Trying to get AirSim to work with latest PX4 master bits. It works fine with 1.10.1, but not with master.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The takeoff works fine, but when it tries to request offboard control we see these errors in the PX4 window:
This message seems to boil down to
FlightTaskOffboard::updateInitialize
and I can't see why this would be failing.Log Files and Screenshots
This is the log that works perfectly on 1.10.1:
https://logs.px4.io/plot_app?log=a28b64a2-58fa-4871-ab60-7c230941fd8e
So you should be able to replay this log on master bits and get the same flight.
This log shows the problem happening:
https://logs.px4.io/plot_app?log=7de2e3fe-7dee-44d8-ad1e-5947ec948b53
Add screenshots to help explain your problem.
Drone (please complete the following information):
make px4_sitl none
Additional context
I'm also finding that it can sometimes take a very long time (forever) for it to get happy with the AirSim simulated GPS, and
commander check
shows the following sometimes:The text was updated successfully, but these errors were encountered: