From 71a63d00f008fbb87196719f839187af6d08e3c4 Mon Sep 17 00:00:00 2001 From: Mariano Lizarraga Date: Thu, 4 Nov 2010 14:00:43 -0600 Subject: [PATCH] Minor changes to Slugs signals --- src/uas/SlugsMAV.cc | 4 ++++ src/uas/SlugsMAV.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/uas/SlugsMAV.cc b/src/uas/SlugsMAV.cc index 5fbf1c931..5fcbc0fad 100644 --- a/src/uas/SlugsMAV.cc +++ b/src/uas/SlugsMAV.cc @@ -29,6 +29,8 @@ SlugsMAV::SlugsMAV(MAVLinkProtocol* mavlink, int id) : UAS(mavlink, id)//, // Place other initializers here { + + } /** @@ -65,6 +67,8 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message) emit valueChanged(uasId, tr("ControlDSC Load"), cpu_load.ctrlLoad, time); emit valueChanged(uasId, tr("Battery Volt"), cpu_load.batVolt, time); + emit newCpuLoad (uasId, &cpu_load); + break; } case MAVLINK_MSG_ID_AIR_DATA: diff --git a/src/uas/SlugsMAV.h b/src/uas/SlugsMAV.h index e62866f3f..a8e9b4597 100644 --- a/src/uas/SlugsMAV.h +++ b/src/uas/SlugsMAV.h @@ -25,6 +25,7 @@ This file is part of the QGROUNDCONTROL project #define SLUGSMAV_H #include "UAS.h" +#include "mavlink.h" class SlugsMAV : public UAS { -- 2.22.0