mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 02:53:34 +08:00
31 lines
656 B
Bash
31 lines
656 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 BAT1_V_DIV 18.000000000
|
|
param set-default BAT1_A_PER_V 38.462030303
|
|
|
|
if [ -f "/fs/microsd/ipcfg-eth0" ]
|
|
then
|
|
else
|
|
netman update -i eth0
|
|
fi
|
|
|
|
rgbled_pwm start
|
|
safety_button start
|
|
|
|
if param greater -s UAVCAN_ENABLE 0
|
|
then
|
|
ifup can0
|
|
fi
|