mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 17:03:33 +08:00
drv_rc_input: replace useless rc_input_values define
This commit is contained in:
@@ -134,7 +134,7 @@ int test_ppm_loopback(int argc, char *argv[])
|
||||
/* give driver 10 ms to propagate */
|
||||
|
||||
/* read low-level values from FMU or IO RC inputs (PPM, Spektrum, S.Bus) */
|
||||
struct rc_input_values rc_input;
|
||||
struct input_rc_s rc_input;
|
||||
orb_copy(ORB_ID(input_rc), _rc_sub, &rc_input);
|
||||
usleep(100000);
|
||||
|
||||
@@ -151,7 +151,7 @@ int test_ppm_loopback(int argc, char *argv[])
|
||||
|
||||
|
||||
|
||||
// struct rc_input_values rc;
|
||||
// struct input_rc_s rc;
|
||||
// result = read(ppm_fd, &rc, sizeof(rc));
|
||||
|
||||
// if (result != sizeof(rc)) {
|
||||
|
||||
@@ -61,12 +61,11 @@
|
||||
|
||||
int test_rc(int argc, char *argv[])
|
||||
{
|
||||
|
||||
int _rc_sub = orb_subscribe(ORB_ID(input_rc));
|
||||
|
||||
/* read low-level values from FMU or IO RC inputs (PPM, Spektrum, S.Bus) */
|
||||
struct rc_input_values rc_input;
|
||||
struct rc_input_values rc_last;
|
||||
struct input_rc_s rc_input;
|
||||
struct input_rc_s rc_last;
|
||||
orb_copy(ORB_ID(input_rc), _rc_sub, &rc_input);
|
||||
usleep(100000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user