diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-01-06 06:31:37 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2013-01-06 06:31:37 +1100 |
commit | 318609bf59083e4247dfd179a3bb36dc2eb9fb45 (patch) | |
tree | 90ba7c5bb8c1d48245ed76cff92823d79f5c1680 | |
parent | 0134186420273170c14b80b8114ccd2474da1792 (diff) | |
download | px4-firmware-318609bf59083e4247dfd179a3bb36dc2eb9fb45.tar.gz px4-firmware-318609bf59083e4247dfd179a3bb36dc2eb9fb45.tar.bz2 px4-firmware-318609bf59083e4247dfd179a3bb36dc2eb9fb45.zip |
fixed PWM_SERVO_GET
this was using the wrong channel
-rw-r--r-- | apps/drivers/px4fmu/fmu.cpp | 2 |
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; } |