PX4 · configuration
TF 系列 LiDAR 接入 PX4 UAVCAN / UART / TTL / CAN · CUAV V5:UAVCAN 配置指南
TF 系列 LiDAR 接入 PX4 的准备、连接、配置与代码要点。原始文件可在资料下载区获取。涉及接口:UAVCAN、UART / TTL、CAN。
适用范围
TF 系列 LiDAR · PX4 · UAVCAN、UART / TTL、CAN · CUAV V5
原始英文技术说明
Configuring TF series sensor using TTL to UAVCAN Converter using CUAV_V5 (Px4 Firmware)
Introduction
the guide provides first-time testers with instructions on how to test the UAVCAN converter using CUAV_V5 with Px4 Firmware.
Applicable product model of the guide :TFLuna\TFmini-S\TFmini-Plus\TF02-Pro
Applicable communication interface : TTL
The products covered by the test : TFmini-S
Test Preparation
----------------------------------- ----------------------------------- Preparing Tools Number
PC with windows system 1
4pin dubond wires 2
TFmini-S-TTL 1CUAV_V5 1
QGroundControl
Px4 Firmware px4fmu-v5default.px4
TTL to UAVCAN Converter 1 ----------------------------------- -----------------------------------
Px4 Firmware Burning
To upgrade firmware using QGC ground station, go to Vehicle Setup -> Firmware page of QGC
[1667529395097]
Use USB to connect to the CUAV_V5, select ‘PX4Pro’ in the pop-up firmware Settings, check ‘Advanced Settings’, and select ‘Custom firmware’.
After loading our test firmware’px4fmu-v5default.px4’, we enter the upgrade process.
Wait for the upgrade progress bar to complete.
Hardware Configuration
CUAV_V5 is connected to the TTL to UAVCAN converter board, LiDAR and computer (note that the LiDAR ID matches the ID set by the computer),as shown in the figure below:
(schematic diagram)
[442cb0b2ef07b08ea0d49f8c838951a]
(Connection Example - for reference only)
Parameters Settings
Go to the Parameters page in the Settings and enter the keyword ‘UAVCAN’ in the search box to find ‘UAVCAN_ENABLE’, and change it to ‘Sensors Automatic Config’,as shown below:
[1669176761823]
After restarting the device, you can see what is shown in the following figure, and then you should find the ‘UAVCANSUBRNG’ parameter and change it to ‘ENABLE’.
[1669176982689]
Restart your device again and you will see something like this:
The parameters are described as follows:
UAVCANRNGMAX //The maximum ranging setting for the device
UAVCANRNGMIN //The minimum ranging setting for the device
UAVCANRNGROT //Setting sensor orientation
Here,the direction is forward (obstacle avoidance), as shown below:(if the direction is downward ,it is altitude hold.)
[1669177528173]
After restarting the device, the ranging value can be seen on the flight interface.
Data Test
Edit the data sheet below the QGC flight interface and add the range display value.
Click the pen flag to enter the edit mode, and click the value to modify the display content and modify the display of the ranging direction value.
After modification, the display effect is as follows:
使用说明
按原始资料可读取的技术内容编排;具体的产品硬件版本、飞控/软件版本和现场安全边界仍应以原始资料及目标平台当前文档为准。
资料与下载
- Configuring TF series sensor using TTL to UAVCAN Converter using CUAV_V5 (Px4 Firmware) · 英文原文(DOCX)填写信息后下载
