Skip to content

Commit

Permalink
Fix Lama coax config
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed May 20, 2016
1 parent 3c22c1c commit 4267b20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ROMFS/px4fmu_common/init.d/15001_coax_heli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!nsh
#
# @name Coaxial Helicopter (such as Esky Lama v4 or Esky Big Lama)
# @name Esky (Big) Lama v4
#
# @type Coaxial Helicopter
#
Expand All @@ -12,7 +12,8 @@
# @maintainer Emmanuel Roussel
#

set VEHICLE_TYPE mc
sh /etc/init.d/rc.mc_defaults
set MIXER coax

if [ $AUTOCNF == yes ]
then
Expand Down Expand Up @@ -47,7 +48,6 @@ then
param set MC_YAWRATE_FF 0
fi

set MIXER coax
# use PWM parameters for throttle channel
set PWM_OUT 34
set PWM_RATE 400
Expand All @@ -62,4 +62,3 @@ set PWM_AUX_OUT 1234
set PWM_AUX_DISARMED 1500
set PWM_AUX_MIN 1000
set PWM_AUX_MAX 2000

4 changes: 4 additions & 0 deletions ROMFS/px4fmu_common/init.d/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,10 @@ then
then
set MAV_TYPE 14
fi
if [ $MIXER == coax ]
then
set MAV_TYPE 3
fi
fi

# Still no MAV_TYPE found
Expand Down

0 comments on commit 4267b20

Please sign in to comment.