HAL_PX4: setup for 12 output channels

moved telemetry port to /dev/ttyS2 to free PWM outputs on FMU
This commit is contained in:
Andrew Tridgell 2013-04-25 20:00:20 +10:00
parent 709615159a
commit ec1678db83
1 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,7 @@
# To disable APM startup add a /fs/microsd/APM/nostart file # To disable APM startup add a /fs/microsd/APM/nostart file
set deviceA /dev/ttyACM0 set deviceA /dev/ttyACM0
set deviceC /dev/ttyS1 set deviceC /dev/ttyS2
# check for an old file called APM, caused by # check for an old file called APM, caused by
# a bug in an earlier firmware release # a bug in an earlier firmware release
@ -87,10 +87,15 @@ then
then then
echo "PX4IO board OK" echo "PX4IO board OK"
echo "PX4IO board OK" >> $logfile echo "PX4IO board OK" >> $logfile
echo "Setting FMU mode_pwm"
fmu mode_pwm
echo "Loading FMU_pass mixer" echo "Loading FMU_pass mixer"
mixer load /dev/pwm_output /etc/mixers/FMU_pass.mix mixer load /dev/pwm_output /etc/mixers/FMU_pass.mix
echo "Setting FMU mode_serial" if [ $deviceC == /dev/ttyS1 ]
fmu mode_serial then
# ttyS1 is used for PWM output for 4 extra channels
set deviceC /dev/ttyS2
fi
else else
echo "No PX4IO board found" echo "No PX4IO board found"
echo "No PX4IO board found" >> $logfile echo "No PX4IO board found" >> $logfile