mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 13:34:08 +08:00
Revert "Aerofc: px4fmu_common: Only set AUTOSTART to 4070 if nothing was set"
This reverts commit 126172d70c9362a6b6cadcac5584e539db280842. This commit is going in the wrong direction: it's actually the same as it was before, but allows changing the autostart configuration to something other than 4070, which means people could wrongly assume it would work in other configurations.
This commit is contained in:
parent
176c6e0df2
commit
162c0a7418
@ -99,15 +99,6 @@ then
|
||||
#then
|
||||
#fi
|
||||
|
||||
if ver hwcmp AEROFC_V1
|
||||
then
|
||||
if param compare SYS_AUTOSTART 0
|
||||
then
|
||||
param set SYS_AUTOCONFIG 1
|
||||
param set SYS_AUTOSTART 4070
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
# Set AUTOCNF flag to use it in AUTOSTART scripts
|
||||
#
|
||||
@ -194,6 +185,15 @@ then
|
||||
set USE_IO no
|
||||
fi
|
||||
|
||||
if ver hwcmp AEROFC_V1
|
||||
then
|
||||
if param compare SYS_AUTOSTART 0
|
||||
then
|
||||
set AUTOCNF yes
|
||||
fi
|
||||
param set SYS_AUTOSTART 4070
|
||||
fi
|
||||
|
||||
#
|
||||
# Set parameters and env variables for selected AUTOSTART
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user