MavLinkMultirotorApi: correctly set the HIL_SENSOR fields_updated field - #2549
Conversation
|
Ratnesh Madaan (@madratman) Rajat Singhal (@rajat2004) Sai Vemprala (@saihv) FYI and review. Thanks! |
|
Nuno Marques (@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? |
Nuno Marques (@TSC21) - Thanks for the clarification. Guada (@guadacasuso) - FYI on this discussion about CI |
|
LGTM, and works fine in linux. Thanks for the quick action Nuno Marques (@TSC21). We'll make a new linux release ASAP Jaeyoung Lim (@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 Ratnesh Madaan (@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_updatedbitmask correctly so it can be interpreted in the simulator module and the sensor data can be parsed.FYI 斯东Stone (@bys1123), Jaeyoung Lim (@Jaeyoung-Lim), Lorenz Meier (@LorenzMeier).