drv_rc_input: replace useless rc_input_values define

This commit is contained in:
MaEtUgR
2018-09-21 16:26:27 +02:00
committed by Beat Küng
parent 5c386a737c
commit 4f0e090e88
11 changed files with 18 additions and 20 deletions
+2 -2
View File
@@ -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)) {
+2 -3
View File
@@ -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);