diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-15 23:21:00 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-15 23:21:00 +0200 |
commit | c467d1635efda46bc7200b95741381fc98e161ae (patch) | |
tree | b72fad33cb6f7f71188236339f223d7de3a26139 /src/examples | |
parent | 9e97994ef92d3ef3496384c4b11c734138c5f3a3 (diff) | |
download | px4-firmware-c467d1635efda46bc7200b95741381fc98e161ae.tar.gz px4-firmware-c467d1635efda46bc7200b95741381fc98e161ae.tar.bz2 px4-firmware-c467d1635efda46bc7200b95741381fc98e161ae.zip |
Build fixes for example
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/matlab_csv_serial/matlab_csv_serial.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/matlab_csv_serial/matlab_csv_serial.c b/src/examples/matlab_csv_serial/matlab_csv_serial.c index 1327d1a23..c66bebeec 100644 --- a/src/examples/matlab_csv_serial/matlab_csv_serial.c +++ b/src/examples/matlab_csv_serial/matlab_csv_serial.c @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (C) 2014 PX4 Development Team. All rights reserved. + * Copyright (c) 2014 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -60,6 +60,7 @@ #include <drivers/drv_gyro.h> #include <systemlib/perf_counter.h> #include <systemlib/systemlib.h> +#include <systemlib/err.h> #include <poll.h> __EXPORT int matlab_csv_serial_main(int argc, char *argv[]); @@ -153,7 +154,6 @@ int matlab_csv_serial_thread_main(int argc, char *argv[]) /* Try to set baud rate */ struct termios uart_config; int termios_state; - bool is_usb = false; /* Back up the original uart configuration to restore it after exit */ if ((termios_state = tcgetattr(serial_fd, &uart_config)) < 0) { @@ -225,7 +225,7 @@ int matlab_csv_serial_thread_main(int argc, char *argv[]) if (fds[0].revents & POLLIN) { orb_copy(ORB_ID(sensor_accel0), accel0_sub, &accel0); - orb_copy(ORB_ID(sensor_accel1), accel0_sub, &accel1); + orb_copy(ORB_ID(sensor_accel1), accel1_sub, &accel1); orb_copy(ORB_ID(sensor_gyro0), gyro0_sub, &gyro0); orb_copy(ORB_ID(sensor_gyro1), gyro1_sub, &gyro1); |