Browse Source

Fix unit test dirty bit

QGC4.4
DonLakeFlyer 8 years ago
parent
commit
9e94dae680
  1. 1
      src/MissionManager/SurveyMissionItemTest.cc

1
src/MissionManager/SurveyMissionItemTest.cc

@ -34,6 +34,7 @@ void SurveyMissionItemTest::init(void) @@ -34,6 +34,7 @@ void SurveyMissionItemTest::init(void)
_offlineVehicle = new Vehicle(MAV_AUTOPILOT_PX4, MAV_TYPE_QUADROTOR, qgcApp()->toolbox()->firmwarePluginManager(), this);
_surveyItem = new SurveyMissionItem(_offlineVehicle, this);
_surveyItem->setTurnaroundDist(0); // Unit test written for no turnaround distance
_surveyItem->setDirty(false);
_mapPolygon = _surveyItem->mapPolygon();
// It's important to check that the right signals are emitted at the right time since that drives ui change.

Loading…
Cancel
Save