aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2013-01-06 06:31:37 +1100
committerAndrew Tridgell <tridge@samba.org>2013-01-06 06:31:37 +1100
commit318609bf59083e4247dfd179a3bb36dc2eb9fb45 (patch)
tree90ba7c5bb8c1d48245ed76cff92823d79f5c1680 /apps/drivers
parent0134186420273170c14b80b8114ccd2474da1792 (diff)
downloadpx4-firmware-318609bf59083e4247dfd179a3bb36dc2eb9fb45.tar.gz
px4-firmware-318609bf59083e4247dfd179a3bb36dc2eb9fb45.tar.bz2
px4-firmware-318609bf59083e4247dfd179a3bb36dc2eb9fb45.zip
fixed PWM_SERVO_GET
this was using the wrong channel
Diffstat (limited to 'apps/drivers')
-rw-r--r--apps/drivers/px4fmu/fmu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/drivers/px4fmu/fmu.cpp b/apps/drivers/px4fmu/fmu.cpp
index d5f4123c2..7e78cb979 100644
--- a/apps/drivers/px4fmu/fmu.cpp
+++ b/apps/drivers/px4fmu/fmu.cpp
@@ -504,7 +504,7 @@ PX4FMU::pwm_ioctl(file *filp, int cmd, unsigned long arg)
/* FALLTHROUGH */
case PWM_SERVO_GET(0):
case PWM_SERVO_GET(1): {
- channel = cmd - PWM_SERVO_SET(0);
+ channel = cmd - PWM_SERVO_GET(0);
*(servo_position_t *)arg = up_pwm_servo_get(channel);
break;
}