mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 12:33:34 +08:00
The param is not really required anymore with the actuator configuration. Also, when it is set to 0, RC doesn't work for some boards which would be nice to avoid. Signed-off-by: Julian Oes <julian@oes.ch>
37 lines
1001 B
Bash
37 lines
1001 B
Bash
#!/bin/sh
|
|
#
|
|
# board specific defaults
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Mavlink ethernet (CFG 1000)
|
|
param set-default MAV_2_CONFIG 1000
|
|
param set-default MAV_2_BROADCAST 1
|
|
param set-default MAV_2_MODE 0
|
|
param set-default MAV_2_RADIO_CTL 0
|
|
param set-default MAV_2_RATE 100000
|
|
param set-default MAV_2_REMOTE_PRT 14550
|
|
param set-default MAV_2_UDP_PRT 14550
|
|
|
|
param set-default SENS_EN_INA238 0
|
|
param set-default SENS_EN_INA228 0
|
|
param set-default SENS_EN_INA226 1
|
|
|
|
if ver hwtypecmp V5X009000 V5X009001 V5X00a000 V5X00a001 V5X008000 V5X008001 V5X010001
|
|
then
|
|
# Skynode: use the "custom participant" config for uxrce_dds_client
|
|
param set-default UXRCE_DDS_PTCFG 2
|
|
fi
|
|
|
|
safety_button start
|
|
|
|
# GPIO Expander driver on external I2C3
|
|
if ver hwtypecmp V5X009000 V5X009001
|
|
then
|
|
# No USB
|
|
mcp23009 start -b 3 -X -D 0xf0 -O 0xf0 -P 0x0f -U 10
|
|
fi
|
|
if ver hwtypecmp V5X00a000 V5X00a001 V5X008000 V5X008001
|
|
then
|
|
mcp23009 start -b 3 -X -D 0xf1 -O 0xf0 -P 0x0f -U 10
|
|
fi
|