mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 09:53:33 +08:00
uORB delete unused pwm_output
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user