Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
2453de9e
Commit
2453de9e
authored
Feb 10, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default acceptance radius to 0
It is also no longer a user visible field
parent
4c863206
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
MavCmdInfoCommon.json
src/MissionManager/MavCmdInfoCommon.json
+0
-6
MissionItem.cc
src/MissionManager/MissionItem.cc
+6
-0
MissionItemTest.cc
src/MissionManager/MissionItemTest.cc
+0
-2
No files found.
src/MissionManager/MavCmdInfoCommon.json
View file @
2453de9e
...
@@ -35,12 +35,6 @@
...
@@ -35,12 +35,6 @@
"units"
:
"seconds"
,
"units"
:
"seconds"
,
"default"
:
0
,
"default"
:
0
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
},
"param2"
:
{
"label"
:
"Accept radius:"
,
"units"
:
"meters"
,
"default"
:
3.0
,
"decimalPlaces"
:
2
}
}
},
},
{
{
...
...
src/MissionManager/MissionItem.cc
View file @
2453de9e
...
@@ -821,6 +821,12 @@ void MissionItem::setDefaultsForCommand(void)
...
@@ -821,6 +821,12 @@ void MissionItem::setDefaultsForCommand(void)
}
}
}
}
if
(
command
==
MAV_CMD_NAV_WAYPOINT
)
{
// We default all acceptance radius to 0. This allows flight controller to be in control of
// accept radius.
setParam2
(
0
);
}
setAutoContinue
(
true
);
setAutoContinue
(
true
);
setFrame
(
specifiesCoordinate
()
?
MAV_FRAME_GLOBAL_RELATIVE_ALT
:
MAV_FRAME_MISSION
);
setFrame
(
specifiesCoordinate
()
?
MAV_FRAME_GLOBAL_RELATIVE_ALT
:
MAV_FRAME_MISSION
);
setRawEdit
(
false
);
setRawEdit
(
false
);
...
...
src/MissionManager/MissionItemTest.cc
View file @
2453de9e
...
@@ -38,7 +38,6 @@ const MissionItemTest::ItemInfo_t MissionItemTest::_rgItemInfo[] = {
...
@@ -38,7 +38,6 @@ const MissionItemTest::ItemInfo_t MissionItemTest::_rgItemInfo[] = {
const
MissionItemTest
::
FactValue_t
MissionItemTest
::
_rgFactValuesWaypoint
[]
=
{
const
MissionItemTest
::
FactValue_t
MissionItemTest
::
_rgFactValuesWaypoint
[]
=
{
{
"Altitude:"
,
70.1234567
},
{
"Altitude:"
,
70.1234567
},
{
"Hold:"
,
10.1234567
},
{
"Hold:"
,
10.1234567
},
{
"Accept radius:"
,
20.1234567
},
};
};
const
MissionItemTest
::
FactValue_t
MissionItemTest
::
_rgFactValuesLoiterUnlim
[]
=
{
const
MissionItemTest
::
FactValue_t
MissionItemTest
::
_rgFactValuesLoiterUnlim
[]
=
{
...
@@ -189,6 +188,5 @@ void MissionItemTest::_testDefaultValues(void)
...
@@ -189,6 +188,5 @@ void MissionItemTest::_testDefaultValues(void)
item
.
setCommand
(
MAV_CMD_NAV_WAYPOINT
);
item
.
setCommand
(
MAV_CMD_NAV_WAYPOINT
);
item
.
setFrame
(
MAV_FRAME_GLOBAL_RELATIVE_ALT
);
item
.
setFrame
(
MAV_FRAME_GLOBAL_RELATIVE_ALT
);
QCOMPARE
(
item
.
param2
(),
3.0
);
QCOMPARE
(
item
.
param7
(),
MissionItem
::
defaultAltitude
);
QCOMPARE
(
item
.
param7
(),
MissionItem
::
defaultAltitude
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment