编译 PX4 make px4_sitl_default运行 sitl_multiple_run.sh, 指定要启动的飞行器的实例数目 (例如 2): ./Tools/sitl_multiple_run.sh 2打开另一个终端,启动第一个实例: ./Tools/jmavsim_run.sh -l继续新开一个终端,启动之后的实例,给实例指定的 仿真 TCP 端口号: ./Tools/jmavsim_run.sh -p 4561 -l 端口号应该被设置为 4560+i , i 的范围为 [0, N-1] 。 ./develop/Firmware//Tools/jmavsim_run.sh -p 4561 -l ./develop/Firmware//Tools/jmavsim_run.sh -p 4562 -l ./develop/Firmware//Tools/jmavsim_run.sh -p 4563 -l ./develop/Firmware//Tools/jmavsim_run.sh -p 4564 -l ./develop/Firmware//Tools/jmavsim_run.sh -p 4565 -l ./develop/Firmware//Tools/jmavsim_run.sh -p 4566 -l ./develop/Firmware//Tools/jmavsim_run.sh -p 4567 -l ./develop/Firmware//Tools/jmavsim_run.sh -p 4568 -l ./develop/Firmware//Tools/jmavsim_run.sh -p 4569 -l
转载请注明原文地址:https://blackberry.8miu.com/read-3152.html