mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
rcS: do not reset COM_FLTMODE* on airframe change
An airframe change keeps all RC params except the flight modes. This fixes that.
This commit is contained in:
@@ -150,8 +150,8 @@ then
|
|||||||
#
|
#
|
||||||
if param compare SYS_AUTOCONFIG 1
|
if param compare SYS_AUTOCONFIG 1
|
||||||
then
|
then
|
||||||
# Wipe out params except RC* and total flight time
|
# Wipe out params except RC*, flight modes and total flight time
|
||||||
param reset_nostart RC* LND_FLIGHT_T_*
|
param reset_nostart RC* COM_FLTMODE* LND_FLIGHT_T_*
|
||||||
set AUTOCNF yes
|
set AUTOCNF yes
|
||||||
else
|
else
|
||||||
set AUTOCNF no
|
set AUTOCNF no
|
||||||
|
|||||||
Reference in New Issue
Block a user