mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
HIL rc scripts fixed
This commit is contained in:
@@ -60,16 +60,8 @@ hil mode_pwm
|
|||||||
#
|
#
|
||||||
param set MAV_TYPE 2
|
param set MAV_TYPE 2
|
||||||
|
|
||||||
#
|
fmu mode_serial
|
||||||
# Check if we got an IO
|
echo "FMU started"
|
||||||
#
|
|
||||||
if px4io start
|
|
||||||
then
|
|
||||||
echo "IO started"
|
|
||||||
else
|
|
||||||
fmu mode_serial
|
|
||||||
echo "FMU started"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the sensors (depends on orb, px4io)
|
# Start the sensors (depends on orb, px4io)
|
||||||
@@ -79,7 +71,7 @@ sh /etc/init.d/rc.sensors
|
|||||||
#
|
#
|
||||||
# Start the attitude estimator (depends on orb)
|
# Start the attitude estimator (depends on orb)
|
||||||
#
|
#
|
||||||
att_pos_estimator_ekf start
|
attitude_estimator_ekf start
|
||||||
|
|
||||||
#
|
#
|
||||||
# Load mixer and start controllers (depends on px4io)
|
# Load mixer and start controllers (depends on px4io)
|
||||||
@@ -94,7 +86,7 @@ position_estimator_inav start
|
|||||||
#
|
#
|
||||||
# Start attitude control
|
# Start attitude control
|
||||||
#
|
#
|
||||||
multirotor_att_control start
|
mc_att_control_vector start
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start position control
|
# Start position control
|
||||||
|
|||||||
@@ -60,16 +60,8 @@ hil mode_pwm
|
|||||||
#
|
#
|
||||||
param set MAV_TYPE 2
|
param set MAV_TYPE 2
|
||||||
|
|
||||||
#
|
fmu mode_serial
|
||||||
# Check if we got an IO
|
echo "FMU started"
|
||||||
#
|
|
||||||
if px4io start
|
|
||||||
then
|
|
||||||
echo "IO started"
|
|
||||||
else
|
|
||||||
fmu mode_serial
|
|
||||||
echo "FMU started"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start the sensors (depends on orb, px4io)
|
# Start the sensors (depends on orb, px4io)
|
||||||
@@ -79,7 +71,7 @@ sh /etc/init.d/rc.sensors
|
|||||||
#
|
#
|
||||||
# Start the attitude estimator (depends on orb)
|
# Start the attitude estimator (depends on orb)
|
||||||
#
|
#
|
||||||
att_pos_estimator_ekf start
|
attitude_estimator_ekf start
|
||||||
|
|
||||||
#
|
#
|
||||||
# Load mixer and start controllers (depends on px4io)
|
# Load mixer and start controllers (depends on px4io)
|
||||||
@@ -94,7 +86,7 @@ position_estimator_inav start
|
|||||||
#
|
#
|
||||||
# Start attitude control
|
# Start attitude control
|
||||||
#
|
#
|
||||||
multirotor_att_control start
|
mc_att_control_vector start
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start position control
|
# Start position control
|
||||||
|
|||||||
Reference in New Issue
Block a user