diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-28 21:05:00 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-01-28 21:05:00 +0100 |
commit | 63b18399c26acb1e3cf771376c3376b4d00a407a (patch) | |
tree | 53c851660a8a0662684c520117ec9ce9525a2bcf /src/modules/mavlink/mavlink_receiver.cpp | |
parent | 1e3d2acbf66b1101a9b17f97d2b786ffaa0e423a (diff) | |
download | px4-firmware-63b18399c26acb1e3cf771376c3376b4d00a407a.tar.gz px4-firmware-63b18399c26acb1e3cf771376c3376b4d00a407a.tar.bz2 px4-firmware-63b18399c26acb1e3cf771376c3376b4d00a407a.zip |
Butchered MAVLink C++ app to compile and link - there is no hope it will work out of the box 8)
Diffstat (limited to 'src/modules/mavlink/mavlink_receiver.cpp')
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 982d6c1d8..0f1d5293e 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -106,7 +106,8 @@ MavlinkReceiver::MavlinkReceiver(Mavlink *parent) : telemetry_status_pub(-1), lat0(0), lon0(0), - alt0(0) + alt0(0), + thread_should_exit(false) { } @@ -818,7 +819,7 @@ MavlinkReceiver::receive_thread(void *arg) /* if read failed, this loop won't execute */ for (ssize_t i = 0; i < nread; i++) { - if (mavlink_parse_char(chan, buf[i], &msg, &status)) { + if (mavlink_parse_char(_mavlink->get_chan(), buf[i], &msg, &status)) { /* handle generic messages and commands */ handle_message(&msg); |