当前位置:网站首页>Run the dronekit flight control application on Shumei faction under px4-jmavsim software simulation environment
Run the dronekit flight control application on Shumei faction under px4-jmavsim software simulation environment
2022-06-25 23:41:00 【Blue sky】
“ The four axes of the sky DIY” Wechat official account training materials are right Pixhawk Aircraft installation Raspberry Pi Introduced , About software simulation , This paper introduces the in Ardupilot Run the flight control application program of Shumei School under the flight control system software simulation , This article is about PX4 Run the flight control application program of Shumei school in the software simulation environment of the flight control system .
Basic simulation environment :
stay PC Or the operating system installed on the laptop is ubuntu 20.04.2, It can also be 16.0.4.
In Shumei sect ( such as :Raspberry Pi 3B) What's installed on ubuntu-mate desktop 16.04.2( You can download it at this address :https://releases.ubuntu-mate.org/archived/xenial/armhf/
The establishment of basic simulation environment and how to communicate with Rasberry Pi establish wifi Connect , Please refer to wechat official account “ The four axes of the sky DIY” Training materials and articles :Pixhawk UAV extended tutorial (2)--- Shumei sect installation ubuntu-mate System and necessary settings
1. stay PC Or laptop computer ubuntu linux On the machine ( hypothesis :IP The address is 192.168.3.12) install PX4 development environment
Reference resources px4 Articles on the official website :https://docs.px4.io/master/en/dev_setup/building_px4.html
2. start-up jmavsim Software emulation (SITL)
stay PX4 The installation directory PX4-Autopilot in , Enter the command :
make px4_sitl_default jmavsim
3. Start the ground station ( If you don't want to see 3D According to the effect , This item can be omitted )
Get into QGroundControl In the installation directory , Enter the command :
./QgroundControl.AppImage
4. stay ubuntu linux On the machine ( hypothesis :IP The address is 192.168.3.12) install mavlink-router
Reference resources mavlink-router Articles on the official website :https://github.com/mavlink-router/mavlink-router
5. stay ubuntu linux On the machine ( hypothesis :IP The address is 192.168.3.12 ) Start the mavlink-router
stay mavlink-router Directory , Enter the command :
./mavlink-routerd -e 192.168.3.11:14540 0.0.0.0:14540
perhaps
./mavlink-routerd -e 192.168.3.11:14540 127.0.0.1:14540
notes :mavlink-router The role of the 192.168.3.12:14540 And 192.168.3.11:14540 Make a connection between (udp Routing of information )
6. stay Raspberry Pi( hypothesis :IP The address is 192.168.3.11) On the establishment of dronekit PX4 Running environment
Reference resources px4 Articles on the official website :https://docs.px4.io/master/en/robotics/dronekit.html
7. download dronekit Applications mavlnk_px4.py
git clone https://github.com/PX4/PX4-Autopilot/blob/master/Tools/mavlink_px4.py
8. modify mavlnk_px4.py The address part of the application
modify mavlink_px4.py The address part of the program is as follows :
conection_string = '192.168.3.11:14540'
#connection_string = '127.0.0.1:14540'
9. function mavlink_px4.py
python mavlink-px4.py
Can be viewed QGroundControl Flight interface and jmavsim 3D Show , Unlock , take off , Flight route , land , locked .
边栏推荐
- A. Balance the Bits--Codeforces Round #712 (Div. 1)
- Beacon realizes asset management and indoor positioning based on 5.2 ultra-low power Bluetooth module efr32 (bg22ax)
- Analysis on the control condition and mode of go cooperation overtime exit
- Konva series tutorial 2: drawing graphics
- .user.ini文件导致的php网站安装问题
- 平衡二叉树AVL
- C. Fibonacci Words-April Fools Day Contest 2021
- Binary, hexadecimal, big end and small end
- YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21
- 录屏转gif的好用小工具ScreenToGif,免费又好用!
猜你喜欢

Extraction system apk

UE4 learning record 2 adding skeleton, skin and motion animation to characters

C# IO Stream 流(二)扩展类_封装器

Ble Low Power Bluetooth networking process and Bluetooth role introduction

CTS RTS RX TX in serial port flow control UART (direct communication between serial port module and MCU)

Qtcreator formatting code

YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21

character string

Use of xinchida ble 5.0 Low Power Bluetooth module (at command serial port transparent transmission) rsbrs02abr

Visual studio code create minimal web API (asp.net core)
随机推荐
Uniapp - call payment function: Alipay
Xinchida nd04 nd04c nrf52832 (52810) ble module (low power Bluetooth communication module) at command test
QLabel 文字水平滚动显示
第六章 习题(678)【微机原理】【习题】
录屏转gif的好用小工具ScreenToGif,免费又好用!
BI-SQL丨存储过程(一)
实例:用C#.NET手把手教你做微信公众号开发(21)--使用微信支付线上收款:H5方式
php性能优化
期末复习【机器学习】
Efr32bg22 ble module (low power Bluetooth communication module) at command test
How to use drawing comparison function in CAD
UE4 learning records create a role and control its movement
C. Fibonacci Words-April Fools Day Contest 2021
Hibernate core api/ configuration file / L1 cache details
Customize the qcombobox drop-down box, right align the display, and slide the drop-down list
Gradle的环境安装与配置
Classic image segmentation network: UNET supports libtorch deployment reasoning [with code]
分享一个OSGeo4W64下载好的库,基于qgis3.10的
Hbuilderx uses the gaude map to obtain the current location
Uniapp -- framework arrangement and analysis summary