ardupilot开发 --- 仿真篇

环境

  • 安装wsl2,win11自带wsl,win10需要安装;
  • git clone ardupilot 源码;
  • 安装 Linux下的build环境;
  • 安装 flightgear(非必须)
    sudo apt-get install flightgear
  • build 想要仿真的载具类型;
  • cd ardupilot/ArduCopter
  • sim_vehicle.py -w
    use the -w option to wipe the virtual EEPROM and load the right default parameters for your vehicle
  • ctrl+c
    kill the sim_vehicle.py you are running
  • 启动仿真器
    sim_vehicle.py -v ArduCopter --console --map --no-mavproxy
    启动 Mission Planner
    TCP 连接
    端口:connect via TCP port 5760
    地址:127.0.0.1
  • sim_vehicle.py --help 查看所有功能,包括:
    automatically build the SITL firmware version for the current code branch, load the simulation models, start the simulator, setup environment and vehicle parameters, and start the MAVProxy GCS 等等;
  • 更多功能请参考文档https://ardupilot.org/dev/docs/setting-up-sitl-on-linux.html
  • 出现的问题:flightgear貌似启动不了;
  • 结束仿真:ctrl+c
  • Mission Planner 控制飞行任务;
相关推荐
EmotionFlying15 天前
(8)(8.1) 光学流量传感器测试和设置(一)
copter·ardupilot·导航
EmotionFlying2 个月前
(7)Nokov 室内光学跟踪系统
copter·ardupilot·导航
后厂村路直博生4 个月前
【ArduPilot】Windows下使用Optitrack通过MAVProxy连接无人机实现定位与导航
ardupilot·定位·动捕·optitrack·mavproxy·motive
lida20034 个月前
ArduPilot开源代码之AP_OSD
git·开源·ardupilot
lida20036 个月前
Open FPV VTX开源之默认MAVLink设置
linux·ardupilot·openipc·diy drone
干了这碗汤6 个月前
被裁20240927 --- 嵌入式硬件开发 STM32篇
stm32·单片机·嵌入式硬件·ardupilot
干了这碗汤7 个月前
被裁20240927 --- 嵌入式硬件开发 前篇
ardupilot
EmotionFlying7 个月前
(11)(2.3.1) ESC遥测(一)
copter·ardupilot·电调和电机
EmotionFlying8 个月前
(11)(2.1.6) Hobbywing DroneCAN ESC(一)
copter·ardupilot·1024程序员节·电调和电机
EmotionFlying8 个月前
(11)(2.1.7) FETtec OneWire ESCs(一)
copter·ardupilot·电调和电机