mirror of https://github.com/ArduPilot/ardupilot
PX4: remove mkblctrl driver initialization
This commit is contained in:
parent
2f326fe5e0
commit
e7bd64b7d6
|
@ -3,9 +3,6 @@
|
|||
# APM startup script for NuttX on PX4
|
||||
|
||||
# To disable APM startup add a /fs/microsd/APM/nostart file
|
||||
# To enable mkblctrl startup add a /fs/microsd/APM/mkblctrl file
|
||||
# To enable mkblctrl_+ startup add a /fs/microsd/APM/mkblctrl_+ file
|
||||
# To enable mkblctrl_x startup add a /fs/microsd/APM/mkblctrl_x file
|
||||
|
||||
# check for an old file called APM, caused by
|
||||
# a bug in an earlier firmware release
|
||||
|
@ -60,28 +57,6 @@ else
|
|||
sh /etc/init.d/rc.error
|
||||
fi
|
||||
|
||||
# start mkblctrl driver if configured
|
||||
if [ -f /fs/microsd/APM/mkblctrl ]
|
||||
then
|
||||
echo "Setting up mkblctrl driver"
|
||||
echo "Setting up mkblctrl driver" >> $logfile
|
||||
mkblctrl -d /dev/pwm_output
|
||||
fi
|
||||
|
||||
if [ -f /fs/microsd/APM/mkblctrl_+ ]
|
||||
then
|
||||
echo "Setting up mkblctrl driver +"
|
||||
echo "Setting up mkblctrl driver +" >> $logfile
|
||||
mkblctrl -mkmode + -d /dev/pwm_output
|
||||
fi
|
||||
|
||||
if [ -f /fs/microsd/APM/mkblctrl_x ]
|
||||
then
|
||||
echo "Setting up mkblctrl driver x"
|
||||
echo "Setting up mkblctrl driver x" >> $logfile
|
||||
mkblctrl -mkmode x -d /dev/pwm_output
|
||||
fi
|
||||
|
||||
echo Starting ArduPilot
|
||||
if ArduPilot start
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue