From eb8d8faa37be98a8f647e60fa6acc259bf120a36 Mon Sep 17 00:00:00 2001 From: Bill Bonney Date: Tue, 16 Jul 2013 10:21:13 -0700 Subject: [PATCH] Fixed two warnings. --- src/comm/MAVLinkProtocol.cc | 2 +- src/uas/UASManager.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index 180670b81..227e1f095 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -187,7 +187,7 @@ void MAVLinkProtocol::linkStatusChanged(bool connected) link->writeBytes(init, sizeof(init)); // Stop any running mavlink instance - char* cmd = "mavlink stop\n"; + const char* cmd = "mavlink stop\n"; link->writeBytes(cmd, strlen(cmd)); link->writeBytes(init, 2); cmd = "uorb start"; diff --git a/src/uas/UASManager.cc b/src/uas/UASManager.cc index 00bb81ba2..21a6a4d9a 100644 --- a/src/uas/UASManager.cc +++ b/src/uas/UASManager.cc @@ -232,11 +232,11 @@ void UASManager::uavChangedHomePosition(int uav, double lat, double lon, double **/ UASManager::UASManager() : activeUAS(NULL), + offlineUASWaypointManager(NULL), homeLat(47.3769), homeLon(8.549444), homeAlt(470.0), - homeFrame(MAV_FRAME_GLOBAL), - offlineUASWaypointManager(NULL) + homeFrame(MAV_FRAME_GLOBAL) { loadSettings(); setLocalNEDSafetyBorders(1, -1, 0, -1, 1, -1); -- 2.22.0