Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Platzgummer
qgroundcontrol
Commits
f19da5cb
Commit
f19da5cb
authored
6 years ago
by
Don Gagne
Browse files
Options
Downloads
Patches
Plain Diff
Fix unit test for new planned home position behavior
parent
ddc06b5a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MissionManager/MissionControllerTest.cc
+2
-3
2 additions, 3 deletions
src/MissionManager/MissionControllerTest.cc
with
2 additions
and
3 deletions
src/MissionManager/MissionControllerTest.cc
+
2
−
3
View file @
f19da5cb
...
...
@@ -135,9 +135,8 @@ void MissionControllerTest::_testAddWaypointWorker(MAV_AUTOPILOT firmwareType)
QCOMPARE
((
MAV_CMD
)
simpleItem
->
command
(),
MAV_CMD_NAV_TAKEOFF
);
QCOMPARE
(
simpleItem
->
childItems
()
->
count
(),
0
);
// If the first item added specifies a coordinate, then planned home position will be set
bool
plannedHomePositionValue
=
firmwareType
==
MAV_AUTOPILOT_ARDUPILOTMEGA
?
false
:
true
;
QCOMPARE
(
settingsItem
->
coordinate
().
isValid
(),
plannedHomePositionValue
);
// Planned home position should always be set after first item
QVERIFY
(
settingsItem
->
coordinate
().
isValid
());
// ArduPilot takeoff command has no coordinate, so should be child item
QCOMPARE
(
settingsItem
->
childItems
()
->
count
(),
firmwareType
==
MAV_AUTOPILOT_ARDUPILOTMEGA
?
1
:
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment