mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 14:17:20 +08:00
px4-same70xplained-v1:ROMFS changes
This commit is contained in:
committed by
Daniel Agar
parent
2de54da648
commit
c536bf95f0
@@ -131,6 +131,36 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ver hwcmp PX4_SAME70XPLAINED_V1
|
||||||
|
then
|
||||||
|
# External I2C bus
|
||||||
|
if hmc5883 -C -T -X start
|
||||||
|
then
|
||||||
|
fi
|
||||||
|
|
||||||
|
set BOARD_FMUV3 false
|
||||||
|
|
||||||
|
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
||||||
|
if mpu9250 -R 2 start
|
||||||
|
then
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ver hwcmp PX4_SAME70XPLAINED_V1
|
||||||
|
then
|
||||||
|
# External I2C bus
|
||||||
|
if hmc5883 -C -T -X start
|
||||||
|
then
|
||||||
|
fi
|
||||||
|
|
||||||
|
set BOARD_FMUV3 false
|
||||||
|
|
||||||
|
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
||||||
|
if mpu9250 -R 2 start
|
||||||
|
then
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if ver hwcmp PX4FMU_V4
|
if ver hwcmp PX4FMU_V4
|
||||||
then
|
then
|
||||||
# External I2C bus
|
# External I2C bus
|
||||||
|
|||||||
@@ -404,8 +404,13 @@ then
|
|||||||
set OUTPUT_MODE hil
|
set OUTPUT_MODE hil
|
||||||
sensors start -h
|
sensors start -h
|
||||||
commander start --hil
|
commander start --hil
|
||||||
|
else
|
||||||
|
if ver hwcmp PX4_SAME70XPLAINED_V1
|
||||||
|
then
|
||||||
|
gps start -d /dev/ttyS2
|
||||||
else
|
else
|
||||||
gps start
|
gps start
|
||||||
|
fi
|
||||||
sh /etc/init.d/rc.sensors
|
sh /etc/init.d/rc.sensors
|
||||||
commander start
|
commander start
|
||||||
fi
|
fi
|
||||||
@@ -421,6 +426,9 @@ then
|
|||||||
set OUTPUT_MODE uavcan_esc
|
set OUTPUT_MODE uavcan_esc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ver hwcmp PX4_SAME70XPLAINED_V1
|
||||||
|
then
|
||||||
|
else
|
||||||
# Sensors on the PWM interface bank
|
# Sensors on the PWM interface bank
|
||||||
if param compare SENS_EN_LL40LS 1
|
if param compare SENS_EN_LL40LS 1
|
||||||
then
|
then
|
||||||
@@ -445,6 +453,7 @@ then
|
|||||||
param set CAM_FBACK_MODE 1
|
param set CAM_FBACK_MODE 1
|
||||||
camera_feedback start
|
camera_feedback start
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# If OUTPUT_MODE == none then something is wrong with setup and we shouldn't try to enable output
|
# If OUTPUT_MODE == none then something is wrong with setup and we shouldn't try to enable output
|
||||||
if [ $OUTPUT_MODE != none ]
|
if [ $OUTPUT_MODE != none ]
|
||||||
|
|||||||
Reference in New Issue
Block a user