From f5689d7907882e88687bde072e7ccadaedc078a2 Mon Sep 17 00:00:00 2001 From: mantelt Date: Thu, 9 Jun 2016 09:27:29 +0200 Subject: [PATCH] Using proper method to send command message Using SendCommandLong(..) instead of SendCommandLongTarget(..) to send MAV_CMD_PAYLOAD_CONTROL message. Now CompId is not defined explicitly anymore. --- src/ui/sensorpodstatus.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/sensorpodstatus.cpp b/src/ui/sensorpodstatus.cpp index 804434e38be..10a1558738b 100644 --- a/src/ui/sensorpodstatus.cpp +++ b/src/ui/sensorpodstatus.cpp @@ -84,8 +84,10 @@ void SensorpodStatus::PowerCycleSensorpodCmd() if (reply == QMessageBox::Yes) { //Send the message via the currently active UAS - ASLUAV *tempUAS = (ASLUAV*) UASManager::instance()->getActiveUAS();; - if (tempUAS) tempUAS->SendCommandLongTarget(MAV_CMD_PAYLOAD_CONTROL, (uint8_t) 50, 1.0f); + ASLUAV *tempUAS = (ASLUAV*) UASManager::instance()->getActiveUAS(); + if (tempUAS) { + tempUAS->SendCommandLong(MAV_CMD_PAYLOAD_CONTROL, 1.0f); + } } }