mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Cleanup, removed commander start calls in locations where its not needed
This commit is contained in:
@@ -54,11 +54,6 @@ ardrone_interface start -d /dev/ttyS1
|
|||||||
#
|
#
|
||||||
sh /etc/init.d/rc.sensors
|
sh /etc/init.d/rc.sensors
|
||||||
|
|
||||||
#
|
|
||||||
# Start the commander.
|
|
||||||
#
|
|
||||||
commander start
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the attitude estimator
|
# Start the attitude estimator
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -41,8 +41,6 @@ then
|
|||||||
mavlink start
|
mavlink start
|
||||||
usleep 5000
|
usleep 5000
|
||||||
|
|
||||||
commander start
|
|
||||||
|
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
else
|
else
|
||||||
# Start MAVLink (on UART1 / ttyS0)
|
# Start MAVLink (on UART1 / ttyS0)
|
||||||
|
|||||||
@@ -28,11 +28,6 @@ usleep 5000
|
|||||||
# Start and configure PX4IO interface
|
# Start and configure PX4IO interface
|
||||||
#
|
#
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
|
|
||||||
#
|
|
||||||
# Start the commander (depends on orb, mavlink)
|
|
||||||
#
|
|
||||||
commander start
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the sensors (depends on orb, px4io)
|
# Start the sensors (depends on orb, px4io)
|
||||||
|
|||||||
@@ -22,8 +22,6 @@ then
|
|||||||
mavlink start
|
mavlink start
|
||||||
usleep 5000
|
usleep 5000
|
||||||
|
|
||||||
commander start
|
|
||||||
|
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
# Set PWM values for DJI ESCs
|
# Set PWM values for DJI ESCs
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ param set MAV_TYPE 13
|
|||||||
set EXIT_ON_END no
|
set EXIT_ON_END no
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start and configure PX4IO or FMU interface
|
# Start and configure PX4IO interface
|
||||||
#
|
#
|
||||||
if px4io detect
|
if px4io detect
|
||||||
then
|
then
|
||||||
@@ -62,12 +62,8 @@ then
|
|||||||
|
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
else
|
else
|
||||||
# Start MAVLink (on UART1 / ttyS0)
|
# This is not possible on a hexa
|
||||||
mavlink start -d /dev/ttyS0
|
tone_alarm error
|
||||||
usleep 5000
|
|
||||||
fmu mode_pwm
|
|
||||||
param set BAT_V_SCALING 0.004593
|
|
||||||
set EXIT_ON_END yes
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ param set MAV_TYPE 14
|
|||||||
set EXIT_ON_END no
|
set EXIT_ON_END no
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start and configure PX4IO or FMU interface
|
# Start and configure PX4IO interface
|
||||||
#
|
#
|
||||||
if px4io detect
|
if px4io detect
|
||||||
then
|
then
|
||||||
@@ -62,12 +62,8 @@ then
|
|||||||
|
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
else
|
else
|
||||||
# Start MAVLink (on UART1 / ttyS0)
|
# This is not possible on an octo
|
||||||
mavlink start -d /dev/ttyS0
|
tone_alarm error
|
||||||
usleep 5000
|
|
||||||
fmu mode_pwm
|
|
||||||
param set BAT_V_SCALING 0.004593
|
|
||||||
set EXIT_ON_END yes
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user