mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Fixed in-air restart order for fixed wing
This commit is contained in:
@@ -29,7 +29,8 @@ if px4io detect
|
|||||||
then
|
then
|
||||||
# Start MAVLink (depends on orb)
|
# Start MAVLink (depends on orb)
|
||||||
mavlink start
|
mavlink start
|
||||||
usleep 5000
|
|
||||||
|
commander start
|
||||||
|
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
# Limit to 100 Hz updates and (implicit) 50 Hz PWM
|
# Limit to 100 Hz updates and (implicit) 50 Hz PWM
|
||||||
@@ -37,7 +38,9 @@ then
|
|||||||
else
|
else
|
||||||
# Start MAVLink (on UART1 / ttyS0)
|
# Start MAVLink (on UART1 / ttyS0)
|
||||||
mavlink start -d /dev/ttyS0
|
mavlink start -d /dev/ttyS0
|
||||||
usleep 5000
|
|
||||||
|
commander start
|
||||||
|
|
||||||
fmu mode_pwm
|
fmu mode_pwm
|
||||||
param set BAT_V_SCALING 0.004593
|
param set BAT_V_SCALING 0.004593
|
||||||
set EXIT_ON_END yes
|
set EXIT_ON_END yes
|
||||||
@@ -53,11 +56,6 @@ sh /etc/init.d/rc.sensors
|
|||||||
#
|
#
|
||||||
sh /etc/init.d/rc.logging
|
sh /etc/init.d/rc.logging
|
||||||
|
|
||||||
#
|
|
||||||
# Start the commander.
|
|
||||||
#
|
|
||||||
commander start
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start GPS interface (depends on orb)
|
# Start GPS interface (depends on orb)
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ if px4io detect
|
|||||||
then
|
then
|
||||||
# Start MAVLink (depends on orb)
|
# Start MAVLink (depends on orb)
|
||||||
mavlink start
|
mavlink start
|
||||||
usleep 5000
|
|
||||||
|
commander start
|
||||||
|
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
# Limit to 100 Hz updates and (implicit) 50 Hz PWM
|
# Limit to 100 Hz updates and (implicit) 50 Hz PWM
|
||||||
@@ -37,7 +38,9 @@ then
|
|||||||
else
|
else
|
||||||
# Start MAVLink (on UART1 / ttyS0)
|
# Start MAVLink (on UART1 / ttyS0)
|
||||||
mavlink start -d /dev/ttyS0
|
mavlink start -d /dev/ttyS0
|
||||||
usleep 5000
|
|
||||||
|
commander start
|
||||||
|
|
||||||
fmu mode_pwm
|
fmu mode_pwm
|
||||||
param set BAT_V_SCALING 0.004593
|
param set BAT_V_SCALING 0.004593
|
||||||
set EXIT_ON_END yes
|
set EXIT_ON_END yes
|
||||||
@@ -53,11 +56,6 @@ sh /etc/init.d/rc.sensors
|
|||||||
#
|
#
|
||||||
sh /etc/init.d/rc.logging
|
sh /etc/init.d/rc.logging
|
||||||
|
|
||||||
#
|
|
||||||
# Start the commander.
|
|
||||||
#
|
|
||||||
commander start
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start GPS interface (depends on orb)
|
# Start GPS interface (depends on orb)
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ if px4io detect
|
|||||||
then
|
then
|
||||||
# Start MAVLink (depends on orb)
|
# Start MAVLink (depends on orb)
|
||||||
mavlink start
|
mavlink start
|
||||||
usleep 5000
|
|
||||||
|
commander start
|
||||||
|
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
# Limit to 100 Hz updates and (implicit) 50 Hz PWM
|
# Limit to 100 Hz updates and (implicit) 50 Hz PWM
|
||||||
@@ -37,7 +38,9 @@ then
|
|||||||
else
|
else
|
||||||
# Start MAVLink (on UART1 / ttyS0)
|
# Start MAVLink (on UART1 / ttyS0)
|
||||||
mavlink start -d /dev/ttyS0
|
mavlink start -d /dev/ttyS0
|
||||||
usleep 5000
|
|
||||||
|
commander start
|
||||||
|
|
||||||
fmu mode_pwm
|
fmu mode_pwm
|
||||||
param set BAT_V_SCALING 0.004593
|
param set BAT_V_SCALING 0.004593
|
||||||
set EXIT_ON_END yes
|
set EXIT_ON_END yes
|
||||||
@@ -53,11 +56,6 @@ sh /etc/init.d/rc.sensors
|
|||||||
#
|
#
|
||||||
sh /etc/init.d/rc.logging
|
sh /etc/init.d/rc.logging
|
||||||
|
|
||||||
#
|
|
||||||
# Start the commander.
|
|
||||||
#
|
|
||||||
commander start
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start GPS interface (depends on orb)
|
# Start GPS interface (depends on orb)
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ if px4io detect
|
|||||||
then
|
then
|
||||||
# Start MAVLink (depends on orb)
|
# Start MAVLink (depends on orb)
|
||||||
mavlink start
|
mavlink start
|
||||||
usleep 5000
|
|
||||||
|
commander start
|
||||||
|
|
||||||
sh /etc/init.d/rc.io
|
sh /etc/init.d/rc.io
|
||||||
# Limit to 100 Hz updates and (implicit) 50 Hz PWM
|
# Limit to 100 Hz updates and (implicit) 50 Hz PWM
|
||||||
@@ -37,7 +38,9 @@ then
|
|||||||
else
|
else
|
||||||
# Start MAVLink (on UART1 / ttyS0)
|
# Start MAVLink (on UART1 / ttyS0)
|
||||||
mavlink start -d /dev/ttyS0
|
mavlink start -d /dev/ttyS0
|
||||||
usleep 5000
|
|
||||||
|
commander start
|
||||||
|
|
||||||
fmu mode_pwm
|
fmu mode_pwm
|
||||||
param set BAT_V_SCALING 0.004593
|
param set BAT_V_SCALING 0.004593
|
||||||
set EXIT_ON_END yes
|
set EXIT_ON_END yes
|
||||||
@@ -53,11 +56,6 @@ sh /etc/init.d/rc.sensors
|
|||||||
#
|
#
|
||||||
sh /etc/init.d/rc.logging
|
sh /etc/init.d/rc.logging
|
||||||
|
|
||||||
#
|
|
||||||
# Start the commander.
|
|
||||||
#
|
|
||||||
commander start
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start GPS interface (depends on orb)
|
# Start GPS interface (depends on orb)
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user