mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 07:23:34 +08:00
pwm_out_sim: split module.yaml into HIL+SIM files
This commit is contained in:
@@ -30,13 +30,20 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
if (${PX4_BOARD_VENDOR}_${PX4_BOARD_MODEL} STREQUAL "px4_sitl")
|
||||
set(module_config "module_sim.yaml")
|
||||
else()
|
||||
set(module_config "module_hil.yaml")
|
||||
endif()
|
||||
|
||||
px4_add_module(
|
||||
MODULE drivers__pwm_out_sim
|
||||
MAIN pwm_out_sim
|
||||
SRCS
|
||||
PWMSim.cpp
|
||||
MODULE_CONFIG
|
||||
module.yaml
|
||||
${module_config}
|
||||
DEPENDS
|
||||
mixer
|
||||
mixer_module
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
|
||||
module_name: PWM Sim
|
||||
actuator_output:
|
||||
output_groups:
|
||||
- param_prefix: ${PWM_MAIN_OR_HIL}
|
||||
channel_label: ${PWM_MAIN_OR_HIL}
|
||||
num_channels: 16
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
module_name: HIL
|
||||
actuator_output:
|
||||
show_subgroups_if: 'SYS_HITL>0'
|
||||
output_groups:
|
||||
- param_prefix: HIL_ACT
|
||||
channel_label: Channel
|
||||
num_channels: 16
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
module_name: SIM
|
||||
actuator_output:
|
||||
output_groups:
|
||||
- param_prefix: PWM_MAIN
|
||||
channel_label: Channel
|
||||
num_channels: 16
|
||||
Reference in New Issue
Block a user