{"action":"created","issue":{"url":"https://api.github.com/repos/PX4/Firmware/issues/10254","repository_url":"https://api.github.com/repos/PX4/Firmware","labels_url":"https://api.github.com/repos/PX4/Firmware/issues/10254/labels{/name}","comments_url":"https://api.github.com/repos/PX4/Firmware/issues/10254/comments","events_url":"https://api.github.com/repos/PX4/Firmware/issues/10254/events","html_url":"https://github.com/PX4/Firmware/issues/10254","id":351518505,"node_id":"MDU6SXNzdWUzNTE1MTg1MDU=","number":10254,"title":"PX4 SITL Firmware Start Error - No Such File or Directory","user":{"login":"ganscool86","id":40417570,"node_id":"MDQ6VXNlcjQwNDE3NTcw","avatar_url":"https://avatars0.githubusercontent.com/u/40417570?v=4","gravatar_id":"","url":"https://api.github.com/users/ganscool86","html_url":"https://github.com/ganscool86","followers_url":"https://api.github.com/users/ganscool86/followers","following_url":"https://api.github.com/users/ganscool86/following{/other_user}","gists_url":"https://api.github.com/users/ganscool86/gists{/gist_id}","starred_url":"https://api.github.com/users/ganscool86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganscool86/subscriptions","organizations_url":"https://api.github.com/users/ganscool86/orgs","repos_url":"https://api.github.com/users/ganscool86/repos","events_url":"https://api.github.com/users/ganscool86/events{/privacy}","received_events_url":"https://api.github.com/users/ganscool86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-17T09:15:22Z","updated_at":"2018-11-12T10:18:26Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI am trying to setup PX4 SITL setup for Airsim. I followed the procedure stated here. First I installed the prerequisites (Bash on Windows and Linux Toolchains) and then pulled the PX4 firmware code and build it using the following commands:\r\n```\r\ngit clone https://github.com/PX4/Firmware.git\r\ncd Firmware\r\ngit submodule update --init --recursive\r\nmake posix_sitl_default\r\n```\r\n\r\nThe build went well without any error message. But when I try to start the PX4 firmware using the following command:\r\n```\r\n./build/posix_sitl_default/px4 ./posix-configs/SITL/init/ekf2/iris\r\n```\r\n or\r\n```\r\n ./build_posix_sitl_default/src/firmware/posix/px4 ./posix-configs/SITL/init/lpe/iris\r\n```\r\nIt just shows No such file or directory. Can someone tell me what i am missing and how to get it to work. Thanks."},"comment":{"url":"https://api.github.com/repos/PX4/Firmware/issues/comments/437827362","html_url":"https://github.com/PX4/Firmware/issues/10254#issuecomment-437827362","issue_url":"https://api.github.com/repos/PX4/Firmware/issues/10254","id":437827362,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzgyNzM2Mg==","user":{"login":"bkueng","id":281593,"node_id":"MDQ6VXNlcjI4MTU5Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/281593?v=4","gravatar_id":"","url":"https://api.github.com/users/bkueng","html_url":"https://github.com/bkueng","followers_url":"https://api.github.com/users/bkueng/followers","following_url":"https://api.github.com/users/bkueng/following{/other_user}","gists_url":"https://api.github.com/users/bkueng/gists{/gist_id}","starred_url":"https://api.github.com/users/bkueng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkueng/subscriptions","organizations_url":"https://api.github.com/users/bkueng/orgs","repos_url":"https://api.github.com/users/bkueng/repos","events_url":"https://api.github.com/users/bkueng/events{/privacy}","received_events_url":"https://api.github.com/users/bkueng/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T10:18:26Z","updated_at":"2018-11-12T10:18:26Z","author_association":"MEMBER","body":"> Can you confirm (this looks about right according to Simulation and System Startup)?\r\n\r\nLooks about right to me as well.\r\n\r\n> Does that mean there is no way to set lpe in SITL via make?\r\n\r\nNot via `make`, no.\r\n\r\n> the valid posix targets are the files listed in https://github.com/PX4/Firmware/tree/master/ROMFS/px4fmu_common/init.d-posix - and that the list of targets from make posix list_vmd_make_targets is generated from the names in that folder?\r\n\r\nThey are defined here: https://github.com/PX4/Firmware/blob/master/platforms/posix/cmake/sitl_target.cmake#L51\r\n\r\n> is all that is required for a simulator target a file in init.d-posix? ... or is there more required (I assume so - ie that this is just part and you also need stuff in Jmavsim and in gazebo, airsim, whatever.\r\n\r\nThe model from the cmake above will be passed to the simulator (here: https://github.com/PX4/Firmware/blob/master/Tools/sitl_run.sh).\r\n\r\n> Is there any reason to manually start a file using ./build/posix_sitl_default/bin/px4 directly and feeding in the init file? Or is the plan to always start using make now?\r\n\r\n`make` is the official way to go for now, because you need to make sure that some other things are correct as well, such as the working directory. Having a separate script with a simple interface would be better though."}}
{"actor":{"display_login":"bkueng"}}