From a3e3bc9d719deb886ebc751014ec87db4c19269f Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Wed, 27 May 2020 10:36:51 -0700 Subject: [PATCH] Fix boat classification as a Rover --- src/comm/QGCMAVLink.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/comm/QGCMAVLink.cc b/src/comm/QGCMAVLink.cc index 4637fe027..a6ea163e6 100644 --- a/src/comm/QGCMAVLink.cc +++ b/src/comm/QGCMAVLink.cc @@ -16,7 +16,13 @@ bool QGCMAVLink::isFixedWing(MAV_TYPE mavType) bool QGCMAVLink::isRover(MAV_TYPE mavType) { - return mavType == MAV_TYPE_GROUND_ROVER; + switch (mavType) { + case MAV_TYPE_GROUND_ROVER: + case MAV_TYPE_SURFACE_BOAT: + return true; + default: + return false; + } } bool QGCMAVLink::isSub(MAV_TYPE mavType) -- 2.22.0