Skip to content

Commit

Permalink
rcS: do not reset COM_FLTMODE* on airframe change
Browse files Browse the repository at this point in the history
An airframe change keeps all RC params except the flight modes. This fixes
that.
  • Loading branch information
bkueng authored and LorenzMeier committed Apr 17, 2018
1 parent 1a0c312 commit 64aab8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ROMFS/px4fmu_common/init.d/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ then
#
if param compare SYS_AUTOCONFIG 1
then
# Wipe out params except RC* and total flight time
param reset_nostart RC* LND_FLIGHT_T_*
# Wipe out params except RC*, flight modes and total flight time
param reset_nostart RC* COM_FLTMODE* LND_FLIGHT_T_*
set AUTOCNF yes
else
set AUTOCNF no
Expand Down

0 comments on commit 64aab8a

Please sign in to comment.