mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-27 00:48:23 +08:00
* refactor(ROMFS): remove trailing zeros from all airframes * refactor(ROMFS): remove allignment whitespace from all startup scripts * feat(romfs_pruner): strip end of line comments in startup scripts and airframes to not waste any flash. * feat(romfs_pruner): strip inline multi-whitespace * fix typo Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Jacob Dahl <37091262+dakejahl@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
23 lines
461 B
Bash
23 lines
461 B
Bash
#!/bin/sh
|
|
#
|
|
# Multicopter default parameters.
|
|
#
|
|
# NOTE: Script variables are declared/initialized/unset in the rcS script.
|
|
#
|
|
|
|
set VEHICLE_TYPE mc
|
|
|
|
# MAV_TYPE_QUADROTOR 2
|
|
param set-default MAV_TYPE 2
|
|
|
|
if param compare IMU_GYRO_RATEMAX 400
|
|
then
|
|
param set-default IMU_GYRO_RATEMAX 800
|
|
fi
|
|
|
|
param set-default RTL_RETURN_ALT 30
|
|
param set-default RTL_DESCEND_ALT 10
|
|
|
|
# lower RNG_FOG since MC are expected to fly closer over obstacles
|
|
param set-default EKF2_RNG_FOG 1
|