mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 00:43:33 +08:00
Merge pull request #875 from PX4/gpsflag
rcS: add options to disable or fake gps output
This commit is contained in:
@@ -120,6 +120,8 @@ then
|
|||||||
set EXIT_ON_END no
|
set EXIT_ON_END no
|
||||||
set MAV_TYPE none
|
set MAV_TYPE none
|
||||||
set LOAD_DEFAULT_APPS yes
|
set LOAD_DEFAULT_APPS yes
|
||||||
|
set GPS yes
|
||||||
|
set GPS_FAKE no
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set DO_AUTOCONFIG flag to use it in AUTOSTART scripts
|
# Set DO_AUTOCONFIG flag to use it in AUTOSTART scripts
|
||||||
@@ -438,7 +440,17 @@ then
|
|||||||
sh /etc/init.d/rc.logging
|
sh /etc/init.d/rc.logging
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gps start
|
if [ $GPS == yes ]
|
||||||
|
then
|
||||||
|
echo "[init] Start GPS"
|
||||||
|
if [ $GPS_FAKE == yes ]
|
||||||
|
then
|
||||||
|
echo "[init] Faking GPS"
|
||||||
|
gps start -f
|
||||||
|
else
|
||||||
|
gps start
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start up ARDrone Motor interface
|
# Start up ARDrone Motor interface
|
||||||
|
|||||||
Reference in New Issue
Block a user