mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
[vtx] Add VTX driver with Tramp and SmartAudio support
Build all targets / Scan for Board Targets (push) Has been cancelled
Build all targets / Build [${{ matrix.runner }}][${{ matrix.group }}] (push) Has been cancelled
Build all targets / Upload Artifacts (push) Has been cancelled
Checks / build (NO_NINJA_BUILD=1 px4_fmu-v5_default) (push) Has been cancelled
Checks / build (NO_NINJA_BUILD=1 px4_sitl_default) (push) Has been cancelled
Checks / build (check_format) (push) Has been cancelled
Checks / build (check_newlines) (push) Has been cancelled
Checks / build (module_documentation) (push) Has been cancelled
Checks / build (px4_fmu-v2_default stack_check) (push) Has been cancelled
Checks / build (px4_sitl_allyes) (push) Has been cancelled
Checks / build (shellcheck_all) (push) Has been cancelled
Checks / build (tests) (push) Has been cancelled
Checks / build (tests_coverage) (push) Has been cancelled
Checks / build (validate_module_configs) (push) Has been cancelled
Clang Tidy / build (push) Has been cancelled
MacOS build / build (px4_fmu-v5_default) (push) Has been cancelled
MacOS build / build (px4_sitl) (push) Has been cancelled
Ubuntu environment build / Build and Test (ubuntu:22.04) (push) Has been cancelled
Ubuntu environment build / Build and Test (ubuntu:24.04) (push) Has been cancelled
Container build / Set Tags and Variables (push) Has been cancelled
Container build / Build Container (amd64) (push) Has been cancelled
Container build / Build Container (arm64) (push) Has been cancelled
Container build / Deploy To Registry (push) Has been cancelled
EKF Update Change Indicator / unit_tests (push) Has been cancelled
Failsafe Simulator Build / build (failsafe_web) (push) Has been cancelled
FLASH usage analysis / Analyzing px4_fmu-v5x (push) Has been cancelled
FLASH usage analysis / Analyzing px4_fmu-v6x (push) Has been cancelled
FLASH usage analysis / Publish Results (push) Has been cancelled
ITCM check / Checking nxp_mr-tropic (push) Has been cancelled
ITCM check / Checking nxp_tropic-community (push) Has been cancelled
ITCM check / Checking px4_fmu-v5x (push) Has been cancelled
ITCM check / Checking px4_fmu-v6xrt (push) Has been cancelled
MAVROS Mission Tests / build (map[mission:MC_mission_box vehicle:iris]) (push) Has been cancelled
MAVROS Offboard Tests / build (map[test_file:mavros_posix_tests_offboard_posctl.test vehicle:iris]) (push) Has been cancelled
Nuttx Target with extra env config / build (px4_fmu-v5_default) (push) Has been cancelled
Python CI Checks / build (push) Has been cancelled
ROS Integration Tests / build (push) Has been cancelled
ROS Translation Node Tests / Build and test (map[ros_version:humble ubuntu:jammy]) (push) Has been cancelled
ROS Translation Node Tests / Build and test (map[ros_version:jazzy ubuntu:noble]) (push) Has been cancelled
SITL Tests / Testing PX4 tailsitter (push) Has been cancelled
SITL Tests / Testing PX4 iris (push) Has been cancelled
SITL Tests / Testing PX4 standard_vtol (push) Has been cancelled
Sync ROS 2 messages to px4_msgs / sync_to_px4_msgs (push) Has been cancelled
Docs - Crowdin - Upload Guide sources (en) / upload-to-crowdin (push) Has been cancelled
Docs - Deploy PX4 User Guide to AWS / build (push) Has been cancelled
Docs - Deploy PX4 User Guide to AWS / deploy (push) Has been cancelled
Build all targets / Scan for Board Targets (push) Has been cancelled
Build all targets / Build [${{ matrix.runner }}][${{ matrix.group }}] (push) Has been cancelled
Build all targets / Upload Artifacts (push) Has been cancelled
Checks / build (NO_NINJA_BUILD=1 px4_fmu-v5_default) (push) Has been cancelled
Checks / build (NO_NINJA_BUILD=1 px4_sitl_default) (push) Has been cancelled
Checks / build (check_format) (push) Has been cancelled
Checks / build (check_newlines) (push) Has been cancelled
Checks / build (module_documentation) (push) Has been cancelled
Checks / build (px4_fmu-v2_default stack_check) (push) Has been cancelled
Checks / build (px4_sitl_allyes) (push) Has been cancelled
Checks / build (shellcheck_all) (push) Has been cancelled
Checks / build (tests) (push) Has been cancelled
Checks / build (tests_coverage) (push) Has been cancelled
Checks / build (validate_module_configs) (push) Has been cancelled
Clang Tidy / build (push) Has been cancelled
MacOS build / build (px4_fmu-v5_default) (push) Has been cancelled
MacOS build / build (px4_sitl) (push) Has been cancelled
Ubuntu environment build / Build and Test (ubuntu:22.04) (push) Has been cancelled
Ubuntu environment build / Build and Test (ubuntu:24.04) (push) Has been cancelled
Container build / Set Tags and Variables (push) Has been cancelled
Container build / Build Container (amd64) (push) Has been cancelled
Container build / Build Container (arm64) (push) Has been cancelled
Container build / Deploy To Registry (push) Has been cancelled
EKF Update Change Indicator / unit_tests (push) Has been cancelled
Failsafe Simulator Build / build (failsafe_web) (push) Has been cancelled
FLASH usage analysis / Analyzing px4_fmu-v5x (push) Has been cancelled
FLASH usage analysis / Analyzing px4_fmu-v6x (push) Has been cancelled
FLASH usage analysis / Publish Results (push) Has been cancelled
ITCM check / Checking nxp_mr-tropic (push) Has been cancelled
ITCM check / Checking nxp_tropic-community (push) Has been cancelled
ITCM check / Checking px4_fmu-v5x (push) Has been cancelled
ITCM check / Checking px4_fmu-v6xrt (push) Has been cancelled
MAVROS Mission Tests / build (map[mission:MC_mission_box vehicle:iris]) (push) Has been cancelled
MAVROS Offboard Tests / build (map[test_file:mavros_posix_tests_offboard_posctl.test vehicle:iris]) (push) Has been cancelled
Nuttx Target with extra env config / build (px4_fmu-v5_default) (push) Has been cancelled
Python CI Checks / build (push) Has been cancelled
ROS Integration Tests / build (push) Has been cancelled
ROS Translation Node Tests / Build and test (map[ros_version:humble ubuntu:jammy]) (push) Has been cancelled
ROS Translation Node Tests / Build and test (map[ros_version:jazzy ubuntu:noble]) (push) Has been cancelled
SITL Tests / Testing PX4 tailsitter (push) Has been cancelled
SITL Tests / Testing PX4 iris (push) Has been cancelled
SITL Tests / Testing PX4 standard_vtol (push) Has been cancelled
Sync ROS 2 messages to px4_msgs / sync_to_px4_msgs (push) Has been cancelled
Docs - Crowdin - Upload Guide sources (en) / upload-to-crowdin (push) Has been cancelled
Docs - Deploy PX4 User Guide to AWS / build (push) Has been cancelled
Docs - Deploy PX4 User Guide to AWS / deploy (push) Has been cancelled
This commit is contained in:
committed by
Niklas Hauser
parent
fad4450d7d
commit
c0c265cd1f
@@ -240,6 +240,7 @@ set(msg_files
|
||||
VehicleThrustSetpoint.msg
|
||||
VehicleTorqueSetpoint.msg
|
||||
VelocityLimits.msg
|
||||
Vtx.msg
|
||||
WheelEncoders.msg
|
||||
YawEstimatorStatus.msg
|
||||
versioned/ActuatorMotors.msg
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint8 BAND_NAME_LENGTH = 12
|
||||
uint8 POWER_LABEL_LENGTH = 4
|
||||
|
||||
uint8 PROTOCOL_NONE = 0 # No protocol is detected, usually an error
|
||||
uint8 PROTOCOL_SMART_AUDIO_V1 = 10
|
||||
uint8 PROTOCOL_SMART_AUDIO_V2 = 20
|
||||
uint8 PROTOCOL_SMART_AUDIO_V2_1 = 21
|
||||
uint8 PROTOCOL_TRAMP = 100
|
||||
uint8 protocol
|
||||
|
||||
uint8 DEVICE_UNKNOWN = 0
|
||||
uint8 DEVICE_PEAK_THOR_T67 = 20
|
||||
uint8 DEVICE_RUSH_MAX_SOLO = 40
|
||||
uint8 device
|
||||
|
||||
uint8 MODE_NORMAL = 0
|
||||
uint8 MODE_PIT = 1
|
||||
uint8 mode
|
||||
|
||||
# Band and Channel are 0-indexed! But the user expects a 1-indexed display!
|
||||
int8 band # Band number (0-23), negative values indicate frequency mode
|
||||
int8 channel # Channel number (0-15), negative values indicate frequency mode
|
||||
uint16 frequency # Frequency in MHz, zero indicates unknown
|
||||
|
||||
uint8 band_letter # Band letter as ASCII
|
||||
uint8[12] band_name # Band name in ASCII without null termination
|
||||
|
||||
# Also 0-indexed, but the user expects a 1-indexed display!
|
||||
int8 power_level # Current power level (0-15), negative values indicate unknown
|
||||
uint8[4] power_label # Current power label in ASCII without null termination
|
||||
@@ -0,0 +1,13 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
# See https://betaflight.com/docs/wiki/guides/current/VTX-CLI-Settings#change-vtx-power-level-using-aux-channel
|
||||
|
||||
uint8 MAX_LENGTH = 160
|
||||
|
||||
uint8 length
|
||||
int8[160] aux_channel
|
||||
int8[160] band
|
||||
int8[160] channel
|
||||
int8[160] power_level
|
||||
int16[160] start_range
|
||||
int16[160] end_range
|
||||
@@ -0,0 +1,35 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint8 NAME_LENGTH = 16
|
||||
uint8 BAND_NAME_LENGTH = 12
|
||||
uint8 POWER_LABEL_LENGTH = 4
|
||||
uint8 CHANNELS = 16
|
||||
uint8 BANDS = 24
|
||||
uint8 POWER_LEVELS = 16
|
||||
|
||||
# Configuration name in ASCII without null termination
|
||||
uint8[16] name
|
||||
|
||||
uint8 bands
|
||||
uint8 channels
|
||||
# Frequency is in MHz
|
||||
# Invalid frequencies are set to 0
|
||||
uint16[384] frequency # 24*16 = 384
|
||||
|
||||
# Band names in ASCII without null termination
|
||||
uint8[288] band_name # 24*12 = 288
|
||||
|
||||
# Band letters in ASCII
|
||||
uint8[24] letter
|
||||
|
||||
# Band attributes
|
||||
uint8 ATTRIBUTE_FACTORY = 0
|
||||
uint8 ATTRIBUTE_CUSTOM = 1
|
||||
uint8[24] attribute
|
||||
|
||||
uint8 power_levels
|
||||
# Positive values are the exact value the VTX protocol expects to set the power level
|
||||
# Negative values are alternative values depending on the VTX protocol and device
|
||||
int16[16] power_value
|
||||
# The power labels as ASCII without null termination
|
||||
uint8[64] power_label # 4*16 = 64
|
||||
Reference in New Issue
Block a user