-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
MavLinkMultirotorApi: correctly set the HIL_SENSOR fields_updated field #2549
Conversation
@madratman @rajat2004 @saihv FYI and review. Thanks! |
AirLib/include/vehicles/multirotor/firmwares/mavlink/MavLinkMultirotorApi.hpp
Show resolved
Hide resolved
@TSC21 - Thanks for making the fix! Couple of questions for my understanding --
Thanks again! |
Hi @bmalhigh!
To guarantee both above, I would suggest we could align on helping you setup and CI integration test pipeline with PX4 SITL that is synced with our latest stable release but also with our upstream master. What do you think? |
@TSC21 - Thanks for the clarification. @guadacasuso - FYI on this discussion about CI |
LGTM, and works fine in linux. Thanks for the quick action @TSC21. We'll make a new linux release ASAP @Jaeyoung-Lim |
Tried on windows, looks like the accel didn't connected.
|
I started to face problems after #2549 followed by #2556 with px4 v1.9.0 and AirSim v1.2.2 on Ubuntu 18.04LTS, all builded from source. I also packaged AirSim in shipping mode. I usually connect AirSim to SITL with tcp 4560 and leave controlIp empty. Then I connect my own GCS (I face same behaviour on QGC, as an additional information QGC cannot connect through the default 14550 as it says the binded port is already in use) through 14540 (local) to 14580 (remote/SITL). Prior to these PRs I used to run flight over SITL as well as HITL. Despite getting the errors as @madratman in comment. My settings.json file is as follows: (please do not mind the distance sensor details as I updated the code and sensor settings a bit.)
My problem now is; as soon as I start the simulation everything in the garden is rosy. But in few seconds the connection is lost with no messages on the SITL command shell. And the drone rolls over and falls, then it takes off few meters and repeats this roll over-fall-takeoff cycle forever |
Fixes the reported in #2477 (comment).
The interface with the PX4 simulator module was changed to allow that different sensor sources get processed at different rates, which what you expect from a real system. In this case, since the sensor sources are not being sent at different rates, I basically just set the
fields_updated
bitmask correctly so it can be interpreted in the simulator module and the sensor data can be parsed.FYI @bys1123, @Jaeyoung-Lim, @LorenzMeier.