From 5a68fec8d77b415c3fc06bfa85905a0a63b5e6a3 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 8 Feb 2016 17:37:06 -0800 Subject: [PATCH] ArduPilot takeoff has no coordinate --- src/MissionManager/MissionControllerTest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MissionManager/MissionControllerTest.cc b/src/MissionManager/MissionControllerTest.cc index a2204ee8b..8e5861be5 100644 --- a/src/MissionManager/MissionControllerTest.cc +++ b/src/MissionManager/MissionControllerTest.cc @@ -191,7 +191,7 @@ void MissionControllerTest::_testAddWaypointWorker(MAV_AUTOPILOT firmwareType) QVERIFY(item); QCOMPARE(item->command(), MavlinkQmlSingleton::MAV_CMD_NAV_TAKEOFF); - QCOMPARE(homeItem->childItems()->count(), 0); + QCOMPARE(homeItem->childItems()->count(), firmwareType == MAV_AUTOPILOT_ARDUPILOTMEGA ? 1 : 0); QCOMPARE(item->childItems()->count(), 0); int expectedLineCount; -- 2.22.0