Setting up PX4 Software-in-Loop Error


In July of this year, it worked well without any problems.
I reinstalled Windows on my computer and downloaded and set it up as a whole new version. But now the above error occurs.
export PX4_SIM_MODEL="iris" export PX4_ESTIMATOR="ekf2" ./build/px4_sitl_default/bin/px4 ./ROMFS/px4fmu_common -s etc/init.d-posix/rcS -t ./test_data
Do you know Why?
I am having the same issue. This might be a PX4 issue though since I'm getting: ERROR [px4_daemon] error binding socket
Following instructions here: https://github.com/Microsoft/AirSim/blob/master/docs/px4_sitl.md note the following:
$ make posix_sitl_default Makefile:198: posix_sitl_default has been deprecated and will be removed, please use px4_sitl_default!
Note recommend to update that doc page to say "make px4_sitl_default"
Anyhow, getting the same error whether I run: ./build/px4_sitl_default/bin/px4 ./ROMFS/px4fmu_common -s etc/init.d-posix/rcS -t ./test_data or make px4_sitl_default none_iris
are you using the latest version of the PX4 firmware? (v1.8.2) If you have older PX4 firmware, you may need the older px4 command line which was:
./build/posix_sitl_default/px4 ./posix-configs/SITL/init/ekf2/iris
I'm using v1.8.0. How do I get v1.8.2? It doesn't seem to move to the newest version when I fetch and reset the git local repo. If I download the latest stable release from here releases , uncompress, and try make, it gives me error: Makefile:39: *** YOU HAVE TO USE GIT TO DOWNLOAD THIS REPOSITORY. ABORTING.. Stop.
@gniwon - Does this help? @clovett - Thanks for your comment. That pointed me in the right direction!
(FYI - My setup is using Bash on Windows running Ubuntu 16.04 LTS from the Windows store)
Okay to answer my own question and offer a solution (cause I finally got past this error), recommend checking out this page: building px4 So once I got a fresh clone of the repo, you can use 'git tag -l' to see a list of available releases. I used 'git checkout v1.8.2' to get the newest version. Then you can see your make options by typing 'make list_config_targets' to get a list of all possible configuration targets. In my case I typed 'make posix_sitl_ekf2 none_iris' After that it showed me all the config settings and gave me some options to update a bunch sub-modules by typing 'u' ENTER several times. Then finally PX4 started up!
INFO [simulator] Waiting for initial data on UDP port 14560. Please start the flight simulator to proceed..
Let me know if this helps! Maybe can close this issue?
Thanks for the "make posix_sitl_ekf2 none_iris" command line, this works great, and so I updated the docs to reflect that. PX4 SITL mode now works great, I tested path.py, survey.py, box.py all are working now.
I was having this issues and my solution is add to head sudo then runs it.
When I try command make px4_sitl_default gazebo It returns Makefile:39: *** YOU HAVE TO USE GIT TO DOWNLOAD THIS REPOSITORY. ABORTING.。 What should I do to solve this problem?
Did you install git for your folder that is in the project
Did you install git for your folder that is in the project
I am facing the same problem, i have installed the git, but couldn't be able link it with MATLAB. could you please guide how to solve this issue.