Butchered MAVLink C++ app to compile and link - there is no hope it will work out of the box 8)

This commit is contained in:
Lorenz Meier
2014-01-28 21:05:00 +01:00
parent 1e3d2acbf6
commit 63b18399c2
8 changed files with 106 additions and 101 deletions
+3 -2
View File
@@ -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);