Windows下使用Airsim+QGC进行PX4硬件在环HITL(四)

Windows下使用Airsim+QGC进行PX4硬件在环HITL

This tutorial will guide you through the installation of Airsim and QGC on Windows, so that the hardware-in-the-loop experiment can be conducted.

Hardware-in-the-Loop (HITL or HIL) is a simulation mode in which normal PX4 firmware is run on real flight controller hardware. This approach has the benefit of testing most of the actual flight code on the real hardware.

In 2017 Microsoft Research created AirSim (Aerial Informatics and Robotics Simulation) – an open-source robotics simulation platform. From ground vehicles, wheeled robotics, aerial drones, and even static IoT devices, AirSim enabled data capture data for models without costly field operations.​

(一)Required softwares

Windows下使用Airsim+QGC进行PX4硬件在环HITL(一)

(二)Preperation for HITL

Windows下使用Airsim+QGC进行PX4硬件在环HITL(二)

(三)HITL Testing

Windows下使用Airsim+QGC进行PX4硬件在环HITL(三)

(四)Virtual flight in HITL

1, Simple takeoff

See (三)HITL Testing

2, By mission

Click the paper airplane on the left. and then follow these three steps:
在这里插入图片描述
在这里插入图片描述
Drag teh arrow to the right and the drone will fly under Mission mode
在这里插入图片描述
The drone will fly along the pre-planned path.
在这里插入图片描述
When the drone reaches the last waypoint, it will stay at that position, this mode is called Hold.
在这里插入图片描述
Command the drone to return the to the starting point. Click the Return icon to enter the Return mode.
在这里插入图片描述

在这里插入图片描述
After landing, QGC will report “Flight Plan Complete”.
在这里插入图片描述

3, Log analysis

You can inspect the log file of your flight by downloading it from QGC and then upload it to the official website Flight Review (px4.io).
在这里插入图片描述
在这里插入图片描述
Open the official website Flight Review (px4.io).
![在这里插入图片描述](https://img-blog.csdnimg.cn/direct/b5e40c047e57447da8473696476ec5a9.png#pic_center= 80%x80%)
在这里插入图片描述
Open 3D View:
在这里插入图片描述
Open Plot Page:
在这里插入图片描述
The below information is related to PWM output. In real flight, the PWM output by flight controller will drive the motors.
在这里插入图片描述

4, Using remote controller & Joystick

  • Remote controller (e.g Futaba 14SG)
    • Configure Radio & Flight mode in QGC
    • Connect RC Receiver to Pixhawk
    • Pair RC Transmitter and RC Receiver
  • Joystick
    • Parameter setting: COM_RC_IN_MODE isRC Transmitter only by default,change it toRC or Joystick keep first. And then, reboot the flight controller.
  • 36
    点赞
  • 23
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值