Fix two protocol-related typos; get the right status flag name for raw PWM; read back the correct page for PWM output.

This commit is contained in:
px4dev
2013-01-26 12:27:03 -08:00
parent f854e2f791
commit b20c050402
+2 -2
View File
@@ -742,7 +742,7 @@ PX4IO::io_publish_mixed_controls()
return OK;
/* if not taking raw PPM from us, must be mixing */
if (_status & PX4IO_P_STATUS_FLAGS_RAW_PPM)
if (_status & PX4IO_P_STATUS_FLAGS_RAW_PWM)
return OK;
/* data we are going to fetch */
@@ -981,7 +981,7 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg)
ret = -EINVAL;
} else {
/* send a direct PWM value */
ret = io_reg_set(PX4IO_PAGE_DIRECT_PWM, channel, arg);
ret = io_reg_set(PX4IO_PAGE_SERVOS, channel, arg);
}
break;