ThunderFly-aerospace / PX4-FlightGear-Bridge

FlightGear simulator to PX4 software stack connector
BSD 3-Clause "New" or "Revised" License
32 stars 42 forks source link

Does PX4 deprecate PX4-FlightGear-Bridge simulation? #31

Open kevinuav opened 11 months ago

kevinuav commented 11 months ago

Hi, I am using the simulation with the latest firmware. However. I encounters errors while it simulates with flight gear. Does px4 deprecate px4-flightgear-bridge? It just responds like this:

PX4-Autopilot % make px4_sitl_nolockstep flightgear_rascal ninja: error: unknown target 'flightgear_rascal' even the command:

PX4-Autopilot % make px4_sitl list_vmd_make_targets
ninja: error: unknown target 'list_vmd_make_targets' make: *** [px4_sitl] Error 1

kaklik commented 11 months ago

This unmerged pull-request should resolve that: https://github.com/PX4/PX4-Autopilot/pull/21853

slimonslimon commented 11 months ago

Hi, do you have Flightgear installed? Does fgfs command work?

In the build system of PX4 are some conditions that disable FG support when the command fgfs binary is not available. (symlink is not enough. I don't know why)

(Will test the current function later)

kevinuav commented 11 months ago

I have installed FlightGear already. And it can be launch with command"% /Applications/FlightGear.app/Contents/MacOS/fgfs"

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年10月16日(星期一) 晚上9:17 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [ThunderFly-aerospace/PX4-FlightGear-Bridge] Does PX4 deprecate PX4-FlightGear-Bridge simulation? (Issue #31)

Hi, do you have Flightgear installed? Does fgfs command work?

In build system of PX4 are some conditions which disable FG support when command fgfs binnary is not available. (simlink is not enought, i dont know why)

(Will test current state later)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kaklik commented 11 months ago

"% /Applications/FlightGear.app/Contents/MacOS/fgfs"

Ok, that is the cause of the issue. The PX4 make system expects that the simple "fgfs" command could run FlightGear. Therefore you should use something like PATH variable or a hardlink. (symlink is not enough, as @slimonslimon posted above.)