mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 03:23:35 +08:00
drv_rc_input: replace useless rc_input_values define
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <uORB/topics/input_rc.h>
|
||||
|
||||
#include "drv_orb_dev.h"
|
||||
|
||||
@@ -77,9 +78,6 @@
|
||||
*/
|
||||
#define RC_INPUT_MAX_DEADZONE_US 500
|
||||
|
||||
#include <uORB/topics/input_rc.h>
|
||||
#define rc_input_values input_rc_s
|
||||
|
||||
/**
|
||||
* Input signal type, value is a control position from zero to 100
|
||||
* percent.
|
||||
|
||||
@@ -335,7 +335,7 @@ private:
|
||||
* @param input_rc Input structure to populate.
|
||||
* @return OK if data was returned.
|
||||
*/
|
||||
int io_get_raw_rc_input(rc_input_values &input_rc);
|
||||
int io_get_raw_rc_input(input_rc_s &input_rc);
|
||||
|
||||
/**
|
||||
* Fetch and publish raw RC input data.
|
||||
@@ -1742,7 +1742,7 @@ PX4IO::io_get_status()
|
||||
}
|
||||
|
||||
int
|
||||
PX4IO::io_get_raw_rc_input(rc_input_values &input_rc)
|
||||
PX4IO::io_get_raw_rc_input(input_rc_s &input_rc)
|
||||
{
|
||||
uint32_t channel_count;
|
||||
int ret;
|
||||
@@ -1849,7 +1849,7 @@ PX4IO::io_publish_raw_rc()
|
||||
{
|
||||
|
||||
/* fetch values from IO */
|
||||
rc_input_values rc_val;
|
||||
input_rc_s rc_val;
|
||||
|
||||
/* set the RC status flag ORDER MATTERS! */
|
||||
rc_val.rc_lost = !(_status & PX4IO_P_STATUS_FLAGS_RC_OK);
|
||||
|
||||
Reference in New Issue
Block a user