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
18be90f0
Commit
18be90f0
authored
Nov 15, 2017
by
Beat Küng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AirMap: remove SITA registration numbers
parent
34250f32
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
33 deletions
+2
-33
AirMapManager.cc
src/MissionManager/AirMapManager.cc
+2
-5
AirMap.SettingsGroup.json
src/Settings/AirMap.SettingsGroup.json
+0
-12
AirMapSettings.cc
src/Settings/AirMapSettings.cc
+0
-4
AirMapSettings.h
src/Settings/AirMapSettings.h
+0
-2
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+0
-10
No files found.
src/MissionManager/AirMapManager.cc
View file @
18be90f0
...
...
@@ -223,8 +223,8 @@ void AirMapRestrictionManager::_addPolygonToList(const airmap::Geometry::Polygon
list
.
append
(
new
PolygonAirspaceRestriction
(
polygonArray
));
}
else
{
//
TODO: support that?
q
Warning
(
)
<<
"Empty polygon, or Polygon with holes. Size: "
<<
polygon
.
size
();
//
no need to support those (they are rare, and in most cases, there's a more restrictive polygon filling the hole)
q
CDebug
(
AirMapManagerLog
)
<<
"Empty polygon, or Polygon with holes. Size: "
<<
polygon
.
size
();
}
}
...
...
@@ -889,9 +889,6 @@ void AirMapManager::setToolbox(QGCToolbox* toolbox)
connect
(
ap
->
userName
(),
&
Fact
::
rawValueChanged
,
this
,
&
AirMapManager
::
_settingsChanged
);
connect
(
ap
->
password
(),
&
Fact
::
rawValueChanged
,
this
,
&
AirMapManager
::
_settingsChanged
);
connect
(
ap
->
sitaUserReg
(),
&
Fact
::
rawValueChanged
,
this
,
&
AirMapManager
::
_settingsChanged
);
connect
(
ap
->
sitaUavReg
(),
&
Fact
::
rawValueChanged
,
this
,
&
AirMapManager
::
_settingsChanged
);
_settingsChanged
();
}
...
...
src/Settings/AirMap.SettingsGroup.json
View file @
18be90f0
...
...
@@ -22,17 +22,5 @@
"shortDescription"
:
"AirMap Password"
,
"type"
:
"string"
,
"defaultValue"
:
""
},
{
"name"
:
"sitaUavReg"
,
"shortDescription"
:
"AirMap SITA UAV Registration"
,
"type"
:
"string"
,
"defaultValue"
:
""
},
{
"name"
:
"sitaUserReg"
,
"shortDescription"
:
"AirMap SITA User Registration"
,
"type"
:
"string"
,
"defaultValue"
:
""
}
]
src/Settings/AirMapSettings.cc
View file @
18be90f0
...
...
@@ -20,8 +20,6 @@ DECLARE_SETTINGGROUP(AirMap)
INIT_SETTINGFACT
(
clientID
);
INIT_SETTINGFACT
(
userName
);
INIT_SETTINGFACT
(
password
);
INIT_SETTINGFACT
(
sitaUavReg
);
INIT_SETTINGFACT
(
sitaUserReg
);
QQmlEngine
::
setObjectOwnership
(
this
,
QQmlEngine
::
CppOwnership
);
qmlRegisterUncreatableType
<
AirMapSettings
>
(
"QGroundControl.SettingsManager"
,
1
,
0
,
"AirMapSettings"
,
"Reference only"
);
}
...
...
@@ -30,5 +28,3 @@ DECLARE_SETTINGSFACT(AirMapSettings, apiKey)
DECLARE_SETTINGSFACT
(
AirMapSettings
,
clientID
)
DECLARE_SETTINGSFACT
(
AirMapSettings
,
userName
)
DECLARE_SETTINGSFACT
(
AirMapSettings
,
password
)
DECLARE_SETTINGSFACT
(
AirMapSettings
,
sitaUavReg
)
DECLARE_SETTINGSFACT
(
AirMapSettings
,
sitaUserReg
)
src/Settings/AirMapSettings.h
View file @
18be90f0
...
...
@@ -24,7 +24,5 @@ public:
DEFINE_SETTINGFACT
(
clientID
)
DEFINE_SETTINGFACT
(
userName
)
DEFINE_SETTINGFACT
(
password
)
DEFINE_SETTINGFACT
(
sitaUavReg
)
DEFINE_SETTINGFACT
(
sitaUserReg
)
};
src/ui/preferences/GeneralSettings.qml
View file @
18be90f0
...
...
@@ -531,16 +531,6 @@ QGCView {
QGCLabel
{
text
:
qsTr
(
"
Password:
"
);
width
:
_labelWidth
;
anchors.verticalCenter
:
parent
.
verticalCenter
}
FactTextField
{
fact
:
QGroundControl
.
settingsManager
.
airMapSettings
.
password
;
width
:
_editFieldWidth
;
anchors.verticalCenter
:
parent
.
verticalCenter
;
echoMode
:
TextInput
.
Password
}
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
text
:
qsTr
(
"
SITA UAV Reg:
"
);
width
:
_labelWidth
;
anchors.verticalCenter
:
parent
.
verticalCenter
}
FactTextField
{
fact
:
QGroundControl
.
settingsManager
.
airMapSettings
.
sitaUavReg
;
width
:
_editFieldWidth
;
anchors.verticalCenter
:
parent
.
verticalCenter
}
}
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
text
:
qsTr
(
"
SITA User Reg:
"
);
width
:
_labelWidth
;
anchors.verticalCenter
:
parent
.
verticalCenter
}
FactTextField
{
fact
:
QGroundControl
.
settingsManager
.
airMapSettings
.
sitaUserReg
;
width
:
_editFieldWidth
;
anchors.verticalCenter
:
parent
.
verticalCenter
}
}
}
}
//-----------------------------------------------------------------
...
...
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