Ardupilot-SITL仿真模拟调试

1.配置SITL仿真调试

./waf configure --board sitl           # software-in-the-loop simulator
./waf configure --board sitl --debug   # software-in-the-loop simulator with debug symbols

./waf copter                            # All multirotor types

2.启动仿真调试

// 进入ArduCopter路径
//启动模拟器 -w擦除虚拟EEPROM
sim_vehicle.py -w

//正常启动模拟器 --conole(控制台) --map(地图)
sim_vehicle.py --console --map

3.飞行模式切换

// 输入飞行模式名字回车即可
>STABILIZE
>LOITER

4.起飞操作

// 遥控控制 rc ch pwm 
// 通道3为油门通道
// 通道pwm值为1000~2000
>rc 3 1000 (起飞前油门回归最低)
>arm throttle (解锁油门)
>rc 3 1500 (中位,实际视无人机具体情况而定)
>rc 3 1000

//1通道为横滚方向
>rc 1 1400
>rc 1 1500

//2通道为俯仰方向
>rc 2 1900
>rc 2 1500

//4通道为偏航方向
>rc 4 1600

5.仿真连接Mission Planner

//SITL连接mission planner
>output add ip:port
//eg: output add 192.168.64.100:14550

6.降落

//降落
>mode land
>rc 3 1500
//上锁
>disarm

详细操作配置请参考Ardupilot官网

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值