mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
ROMFS cleanup to eleminate excessive comments and resulting flash usage
This commit is contained in:
@@ -26,8 +26,6 @@ then
|
|||||||
param set FW_R_P 100
|
param set FW_R_P 100
|
||||||
param set FW_R_RMAX 100
|
param set FW_R_RMAX 100
|
||||||
param set FW_THR_CRUISE 0.65
|
param set FW_THR_CRUISE 0.65
|
||||||
param set FW_THR_MAX 1
|
|
||||||
param set FW_THR_MIN 0
|
|
||||||
param set FW_T_SINK_MAX 5.0
|
param set FW_T_SINK_MAX 5.0
|
||||||
param set FW_T_SINK_MIN 4.0
|
param set FW_T_SINK_MIN 4.0
|
||||||
param set FW_Y_ROLLFF 1.1
|
param set FW_Y_ROLLFF 1.1
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# 3DR Iris Quadcopter
|
# 3DR Iris Quadcopter
|
||||||
#
|
#
|
||||||
# Maintainers: Anton Babushkin <anton.babushkin@me.com>
|
# Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# HIL Quadcopter X
|
# HIL Quadcopter X
|
||||||
#
|
#
|
||||||
# Maintainers: Anton Babushkin <anton.babushkin@me.com>
|
# Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
sh /etc/init.d/4001_quad_x
|
sh /etc/init.d/4001_quad_x
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
#!nsh
|
|
||||||
#
|
|
||||||
# HIL Rascal 110 (Flightgear)
|
|
||||||
#
|
|
||||||
# Maintainers: Thomas Gubler <thomasgubler@gmail.com>
|
|
||||||
#
|
|
||||||
|
|
||||||
echo "HIL Rascal 110 starting.."
|
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
|
||||||
then
|
|
||||||
# Set all params here, then disable autoconfig
|
|
||||||
|
|
||||||
param set FW_P_D 0
|
|
||||||
param set FW_P_I 0
|
|
||||||
param set FW_P_IMAX 15
|
|
||||||
param set FW_P_LIM_MAX 50
|
|
||||||
param set FW_P_LIM_MIN -50
|
|
||||||
param set FW_P_P 60
|
|
||||||
param set FW_P_RMAX_NEG 0
|
|
||||||
param set FW_P_RMAX_POS 0
|
|
||||||
param set FW_P_ROLLFF 1.1
|
|
||||||
param set FW_R_D 0
|
|
||||||
param set FW_R_I 5
|
|
||||||
param set FW_R_IMAX 20
|
|
||||||
param set FW_R_P 100
|
|
||||||
param set FW_R_RMAX 100
|
|
||||||
param set FW_THR_CRUISE 0.65
|
|
||||||
param set FW_THR_MAX 1
|
|
||||||
param set FW_THR_MIN 0
|
|
||||||
param set FW_T_SINK_MAX 5.0
|
|
||||||
param set FW_T_SINK_MIN 4.0
|
|
||||||
param set FW_Y_ROLLFF 1.1
|
|
||||||
param set FW_L1_PERIOD 16
|
|
||||||
param set RC_SCALE_ROLL 1.0
|
|
||||||
param set RC_SCALE_PITCH 1.0
|
|
||||||
|
|
||||||
param set SYS_AUTOCONFIG 0
|
|
||||||
param save
|
|
||||||
fi
|
|
||||||
|
|
||||||
set HIL yes
|
|
||||||
|
|
||||||
set VEHICLE_TYPE fw
|
|
||||||
set MIXER FMU_AERT
|
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# HIL Quadcopter +
|
# HIL Quadcopter +
|
||||||
#
|
#
|
||||||
# Maintainers: Anton Babushkin <anton.babushkin@me.com>
|
# Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
sh /etc/init.d/1001_rc_quad_x.hil
|
sh /etc/init.d/1001_rc_quad_x.hil
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# HIL Rascal 110 (Flightgear)
|
# HIL Rascal 110 (Flightgear)
|
||||||
#
|
#
|
||||||
# Maintainers: Thomas Gubler <thomasgubler@gmail.com>
|
# Thomas Gubler <thomasgubler@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
echo "HIL Rascal 110 starting.."
|
echo "HIL Rascal 110 starting.."
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# HIL Malolo 1 (Flightgear)
|
# HIL Malolo 1 (Flightgear)
|
||||||
#
|
#
|
||||||
# Maintainers: Thomas Gubler <thomasgubler@gmail.com>
|
# Thomas Gubler <thomasgubler@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
echo "HIL Malolo 1 starting.."
|
echo "HIL Malolo 1 starting.."
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Generic 10” Octo coaxial geometry
|
# Generic 10” Octo coaxial geometry
|
||||||
#
|
#
|
||||||
# Maintainers: Lorenz Meier <lm@inf.ethz.ch>, Anton Babushkin <anton.babushkin@me.com>
|
# Lorenz Meier <lm@inf.ethz.ch>, Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
sh /etc/init.d/8001_octo_x
|
sh /etc/init.d/8001_octo_x
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
#!nsh
|
#!nsh
|
||||||
|
|
||||||
echo "[init] PX4FMU v1, v2 with or without IO on 3DR SkyWalker"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Load default params for this platform
|
|
||||||
#
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
then
|
then
|
||||||
# Set all params here, then disable autoconfig
|
# Set all params here, then disable autoconfig
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
#!nsh
|
#!nsh
|
||||||
|
|
||||||
echo "[init] PX4FMU v1, v2 with or without IO on 3DR SkyWalker"
|
|
||||||
|
|
||||||
#
|
|
||||||
# Load default params for this platform
|
|
||||||
#
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
then
|
then
|
||||||
# Set all params here, then disable autoconfig
|
# Set all params here, then disable autoconfig
|
||||||
@@ -23,8 +18,6 @@ then
|
|||||||
param set FW_R_P 100
|
param set FW_R_P 100
|
||||||
param set FW_R_RMAX 100
|
param set FW_R_RMAX 100
|
||||||
param set FW_THR_CRUISE 0.65
|
param set FW_THR_CRUISE 0.65
|
||||||
param set FW_THR_MAX 1
|
|
||||||
param set FW_THR_MIN 0
|
|
||||||
param set FW_T_SINK_MAX 5.0
|
param set FW_T_SINK_MAX 5.0
|
||||||
param set FW_T_SINK_MIN 4.0
|
param set FW_T_SINK_MIN 4.0
|
||||||
param set FW_Y_ROLLFF 1.1
|
param set FW_Y_ROLLFF 1.1
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
#!nsh
|
#!nsh
|
||||||
|
|
||||||
echo "[init] PX4FMU v1, v2 with or without IO on Camflyer"
|
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
then
|
then
|
||||||
#
|
#
|
||||||
@@ -26,7 +24,7 @@ then
|
|||||||
param set FW_R_P 60
|
param set FW_R_P 60
|
||||||
param set FW_R_RMAX 60
|
param set FW_R_RMAX 60
|
||||||
param set FW_THR_CRUISE 0.65
|
param set FW_THR_CRUISE 0.65
|
||||||
param set FW_THR_MAX 0.7
|
param set FW_THR_MAX 1.0
|
||||||
param set FW_THR_MIN 0
|
param set FW_THR_MIN 0
|
||||||
param set FW_T_SINK_MAX 5
|
param set FW_T_SINK_MAX 5
|
||||||
param set FW_T_SINK_MIN 2
|
param set FW_T_SINK_MIN 2
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Phantom FPV Flying Wing
|
# Phantom FPV Flying Wing
|
||||||
#
|
#
|
||||||
# Maintainers: Simon Wilks <sjwilks@gmail.com>
|
# Simon Wilks <sjwilks@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Skywalker X5 Flying Wing
|
# Skywalker X5 Flying Wing
|
||||||
#
|
#
|
||||||
# Maintainers: Thomas Gubler <thomasgubler@gmail.com>, Julian Oes <joes@student.ethz.ch>
|
# Thomas Gubler <thomasgubler@gmail.com>, Julian Oes <joes@student.ethz.ch>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Wing Wing (aka Z-84) Flying Wing
|
# Wing Wing (aka Z-84) Flying Wing
|
||||||
#
|
#
|
||||||
# Maintainers: Simon Wilks <sjwilks@gmail.com>
|
# Simon Wilks <sjwilks@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# FX-79 Buffalo Flying Wing
|
# FX-79 Buffalo Flying Wing
|
||||||
#
|
#
|
||||||
# Maintainers: Simon Wilks <sjwilks@gmail.com>
|
# Simon Wilks <sjwilks@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Generic 10” Quad X geometry
|
# Generic 10” Quad X geometry
|
||||||
#
|
#
|
||||||
# Maintainers: Lorenz Meier <lm@inf.ethz.ch>, Anton Babushkin <anton.babushkin@me.com>
|
# Lorenz Meier <lm@inf.ethz.ch>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# DJI Flame Wheel F330 Quadcopter
|
# DJI Flame Wheel F330 Quadcopter
|
||||||
#
|
#
|
||||||
# Maintainers: Anton Babushkin <anton.babushkin@me.com>
|
# Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# DJI Flame Wheel F450 Quadcopter
|
# DJI Flame Wheel F450 Quadcopter
|
||||||
#
|
#
|
||||||
# Maintainers: Lorenz Meier <lm@inf.ethz.ch>
|
# Lorenz Meier <lm@inf.ethz.ch>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
if [ $DO_AUTOCONFIG == yes ]
|
||||||
|
|||||||
@@ -2,48 +2,10 @@
|
|||||||
#
|
#
|
||||||
# HobbyKing X550 Quadcopter
|
# HobbyKing X550 Quadcopter
|
||||||
#
|
#
|
||||||
# Maintainers: Todd Stellanova <tstellanova@gmail.com>
|
# Todd Stellanova <tstellanova@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $DO_AUTOCONFIG == yes ]
|
sh /etc/init.d/4001_quad_x
|
||||||
then
|
|
||||||
#
|
|
||||||
# Default parameters for this platform
|
|
||||||
#
|
|
||||||
param set MC_ROLL_P 5.5
|
|
||||||
param set MC_ROLLRATE_P 0.14
|
|
||||||
param set MC_ROLLRATE_I 0
|
|
||||||
param set MC_ROLLRATE_D 0.006
|
|
||||||
param set MC_PITCH_P 5.5
|
|
||||||
param set MC_PITCHRATE_P 0.14
|
|
||||||
param set MC_PITCHRATE_I 0
|
|
||||||
param set MC_PITCHRATE_D 0.006
|
|
||||||
param set MC_YAW_P 0.6
|
|
||||||
param set MC_YAWRATE_P 0.08
|
|
||||||
param set MC_YAWRATE_I 0
|
|
||||||
param set MC_YAWRATE_D 0
|
|
||||||
|
|
||||||
param set MPC_THR_MAX 1.0
|
|
||||||
param set MPC_THR_MIN 0.1
|
|
||||||
param set MPC_XY_P 1.0
|
|
||||||
param set MPC_XY_VEL_P 0.1
|
|
||||||
param set MPC_XY_VEL_I 0.02
|
|
||||||
param set MPC_XY_VEL_D 0.01
|
|
||||||
param set MPC_XY_VEL_MAX 5
|
|
||||||
param set MPC_XY_FF 0.5
|
|
||||||
param set MPC_Z_P 1.0
|
|
||||||
param set MPC_Z_VEL_P 0.1
|
|
||||||
param set MPC_Z_VEL_I 0.02
|
|
||||||
param set MPC_Z_VEL_D 0.0
|
|
||||||
param set MPC_Z_VEL_MAX 3
|
|
||||||
param set MPC_Z_FF 0.5
|
|
||||||
param set MPC_TILT_MAX 1.0
|
|
||||||
param set MPC_LAND_SPEED 1.0
|
|
||||||
param set MPC_LAND_TILT 0.3
|
|
||||||
fi
|
|
||||||
|
|
||||||
set VEHICLE_TYPE mc
|
|
||||||
set MIXER FMU_quad_x
|
|
||||||
|
|
||||||
set PWM_OUTPUTS 1234
|
set PWM_OUTPUTS 1234
|
||||||
set PWM_RATE 400
|
set PWM_RATE 400
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Generic 10” Quad + geometry
|
# Generic 10” Quad + geometry
|
||||||
#
|
#
|
||||||
# Maintainers: Lorenz Meier <lm@inf.ethz.ch>, Anton Babushkin <anton.babushkin@me.com>
|
# Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
sh /etc/init.d/4001_quad_x
|
sh /etc/init.d/4001_quad_x
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Generic 10” Hexa X geometry
|
# Generic 10” Hexa X geometry
|
||||||
#
|
#
|
||||||
# Maintainers: Lorenz Meier <lm@inf.ethz.ch>, Anton Babushkin <anton.babushkin@me.com>
|
# Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
sh /etc/init.d/4001_quad_x
|
sh /etc/init.d/4001_quad_x
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Generic 10” Hexa + geometry
|
# Generic 10” Hexa + geometry
|
||||||
#
|
#
|
||||||
# Maintainers: Lorenz Meier <lm@inf.ethz.ch>, Anton Babushkin <anton.babushkin@me.com>
|
# Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
sh /etc/init.d/6001_hexa_x
|
sh /etc/init.d/6001_hexa_x
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Generic 10” Octo X geometry
|
# Generic 10” Octo X geometry
|
||||||
#
|
#
|
||||||
# Maintainers: Lorenz Meier <lm@inf.ethz.ch>, Anton Babushkin <anton.babushkin@me.com>
|
# Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
sh /etc/init.d/4001_quad_x
|
sh /etc/init.d/4001_quad_x
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Generic 10” Octo + geometry
|
# Generic 10” Octo + geometry
|
||||||
#
|
#
|
||||||
# Maintainers: Lorenz Meier <lm@inf.ethz.ch>, Anton Babushkin <anton.babushkin@me.com>
|
# Anton Babushkin <anton.babushkin@me.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
sh /etc/init.d/8001_octo_x
|
sh /etc/init.d/8001_octo_x
|
||||||
|
|||||||
@@ -31,11 +31,6 @@ then
|
|||||||
sh /etc/init.d/1001_rc_quad_x.hil
|
sh /etc/init.d/1001_rc_quad_x.hil
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if param compare SYS_AUTOSTART 1002
|
|
||||||
then
|
|
||||||
sh /etc/init.d/1002_rc_fw_state.hil
|
|
||||||
fi
|
|
||||||
|
|
||||||
if param compare SYS_AUTOSTART 1003
|
if param compare SYS_AUTOSTART 1003
|
||||||
then
|
then
|
||||||
sh /etc/init.d/1003_rc_quad_+.hil
|
sh /etc/init.d/1003_rc_quad_+.hil
|
||||||
|
|||||||
@@ -3,17 +3,6 @@
|
|||||||
# Standard apps for fixed wing
|
# Standard apps for fixed wing
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
|
||||||
# Start the attitude and position estimator
|
|
||||||
#
|
|
||||||
att_pos_estimator_ekf start
|
att_pos_estimator_ekf start
|
||||||
|
|
||||||
#
|
|
||||||
# Start attitude controller
|
|
||||||
#
|
|
||||||
fw_att_control start
|
fw_att_control start
|
||||||
|
|
||||||
#
|
|
||||||
# Start the position controller
|
|
||||||
#
|
|
||||||
fw_pos_control_l1 start
|
fw_pos_control_l1 start
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Allow PX4IO to recover from midair restarts.
|
# Allow PX4IO to recover from midair restarts.
|
||||||
# this is very unlikely, but quite safe and robust.
|
|
||||||
#
|
#
|
||||||
px4io recovery
|
px4io recovery
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,11 @@
|
|||||||
#!nsh
|
#!nsh
|
||||||
#
|
#
|
||||||
# Standard apps for multirotors
|
# Standard apps for multirotors:
|
||||||
|
# att & pos estimator, att & pos control.
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
|
||||||
# Start the attitude estimator
|
|
||||||
#
|
|
||||||
attitude_estimator_ekf start
|
attitude_estimator_ekf start
|
||||||
|
|
||||||
#
|
|
||||||
# Start position estimator
|
|
||||||
#
|
|
||||||
position_estimator_inav start
|
position_estimator_inav start
|
||||||
|
|
||||||
#
|
|
||||||
# Start attitude control
|
|
||||||
#
|
|
||||||
mc_att_control start
|
mc_att_control start
|
||||||
|
|
||||||
#
|
|
||||||
# Start position control
|
|
||||||
#
|
|
||||||
mc_pos_control start
|
mc_pos_control start
|
||||||
|
|||||||
@@ -3,10 +3,6 @@
|
|||||||
# Standard startup script for PX4FMU onboard sensor drivers.
|
# Standard startup script for PX4FMU onboard sensor drivers.
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
|
||||||
# Start sensor drivers here.
|
|
||||||
#
|
|
||||||
|
|
||||||
ms5611 start
|
ms5611 start
|
||||||
adc start
|
adc start
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
# PX4FMU startup script.
|
# PX4FMU startup script.
|
||||||
|
|
||||||
#
|
#
|
||||||
# Default to auto-start mode. An init script on the microSD card
|
# Default to auto-start mode.
|
||||||
# can change this to prevent automatic startup of the flight script.
|
|
||||||
#
|
#
|
||||||
set MODE autostart
|
set MODE autostart
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user