mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 07:43:33 +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>
26 lines
620 B
Bash
26 lines
620 B
Bash
#!/bin/sh
|
|
#
|
|
# board specific defaults
|
|
#------------------------------------------------------------------------------
|
|
|
|
param set-default BAT1_V_DIV 18.1
|
|
param set-default BAT2_V_DIV 18.1
|
|
|
|
param set-default BAT1_A_PER_V 36.367515152
|
|
param set-default BAT2_A_PER_V 36.367515152
|
|
|
|
if ver hwtypecmp V5005000 V5005002 V5006000 V5006002
|
|
then
|
|
# CUAV V5+ (V550/V552) and V5nano (V560/V562) have 3 IMUs
|
|
# Multi-EKF (IMUs only)
|
|
param set-default EKF2_MULTI_IMU 3
|
|
param set-default SENS_IMU_MODE 0
|
|
else
|
|
# Multi-EKF
|
|
param set-default EKF2_MULTI_IMU 2
|
|
param set-default SENS_IMU_MODE 0
|
|
fi
|
|
|
|
rgbled_pwm start
|
|
safety_button start
|