uORB delete unused pwm_output

This commit is contained in:
Daniel Agar
2017-11-26 16:39:30 -05:00
parent 6ca86c3608
commit d3c87c77d2
5 changed files with 8 additions and 15 deletions
+6 -8
View File
@@ -35,8 +35,7 @@
* @file PWM servo output interface.
*
* Servo values can be set with the PWM_SERVO_SET ioctl, by writing a
* pwm_output_values structure to the device, or by publishing to the
* output_pwm ORB topic.
* pwm_output_values structure to the device
* Writing a value of 0 to a channel suppresses any output for that
* channel.
*/
@@ -45,8 +44,6 @@
#include <px4_defines.h>
#include "uORB/topics/output_pwm.h"
#include <stdint.h>
#include <sys/ioctl.h>
@@ -64,11 +61,12 @@ __BEGIN_DECLS
#define PWM_OUTPUT_BASE_DEVICE_PATH "/dev/pwm_output"
#define PWM_OUTPUT0_DEVICE_PATH "/dev/pwm_output0"
#define pwm_output_values output_pwm_s
#define PWM_OUTPUT_MAX_CHANNELS 16
#ifndef PWM_OUTPUT_MAX_CHANNELS
#define PWM_OUTPUT_MAX_CHANNELS output_pwm_s::PWM_OUTPUT_MAX_CHANNELS
#endif
struct pwm_output_values {
uint32_t channel_count;
uint16_t values[16];
};
/**
* Maximum number of PWM output channels supported by the device.
-1
View File
@@ -78,7 +78,6 @@
#define RC_INPUT_MAX_DEADZONE_US 500
#include <uORB/topics/input_rc.h>
#define pwm_output_values output_pwm_s
#define rc_input_values input_rc_s
/**