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
76975530
Commit
76975530
authored
Mar 06, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2960 from DonLakeFlyer/iOSFixes
iOS fixes
parents
260976a7
b7c43c0f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
QGCCommon.pri
QGCCommon.pri
+1
-2
LinkManager.cc
src/comm/LinkManager.cc
+4
-0
LinkManager.h
src/comm/LinkManager.h
+4
-0
No files found.
QGCCommon.pri
View file @
76975530
...
...
@@ -74,9 +74,8 @@ linux {
CONFIG += iOSBuild MobileBuild app_bundle
DEFINES += __ios__
QMAKE_IOS_DEPLOYMENT_TARGET = 8.0
QMAKE_IOS_TARGETED_DEVICE_FAMILY =
2 #- iPad only for now
QMAKE_IOS_TARGETED_DEVICE_FAMILY =
1,2 # Universal
QMAKE_LFLAGS += -Wl,-no_pie
warning("iOS build is experimental and not yet fully functional")
} else {
error("Unsupported build platform, only Linux, Windows, Android and Mac (Mac OS and iOS) are supported")
}
...
...
src/comm/LinkManager.cc
View file @
76975530
...
...
@@ -89,9 +89,11 @@ LinkManager::LinkManager(QGCApplication* app)
_autoconnect3DRRadio
=
settings
.
value
(
_autoconnect3DRRadioKey
,
true
).
toBool
();
_autoconnectPX4Flow
=
settings
.
value
(
_autoconnectPX4FlowKey
,
true
).
toBool
();
#ifndef __ios__
_activeLinkCheckTimer
.
setInterval
(
_activeLinkCheckTimeoutMSecs
);
_activeLinkCheckTimer
.
setSingleShot
(
false
);
connect
(
&
_activeLinkCheckTimer
,
&
QTimer
::
timeout
,
this
,
&
LinkManager
::
_activeLinkCheck
);
#endif
}
LinkManager
::~
LinkManager
()
...
...
@@ -849,6 +851,7 @@ bool LinkManager::isBluetoothAvailable(void)
return
qgcApp
()
->
isBluetoothAvailable
();
}
#ifndef __ios__
void
LinkManager
::
_activeLinkCheck
(
void
)
{
SerialLink
*
link
=
NULL
;
...
...
@@ -892,3 +895,4 @@ void LinkManager::_activeLinkCheck(void)
QStringLiteral
(
"Your Vehicle is not responding. If this continues shutdown QGroundControl, restart the Vehicle letting it boot completely, then start QGroundControl."
));
}
}
#endif
src/comm/LinkManager.h
View file @
76975530
...
...
@@ -202,7 +202,9 @@ signals:
private
slots
:
void
_linkConnected
(
void
);
void
_linkDisconnected
(
void
);
#ifndef __ios__
void
_activeLinkCheck
(
void
);
#endif
private:
bool
_connectionsSuspendedMsg
(
void
);
...
...
@@ -236,9 +238,11 @@ private:
bool
_autoconnect3DRRadio
;
bool
_autoconnectPX4Flow
;
#ifndef __ios__
QTimer
_activeLinkCheckTimer
;
///< Timer which checks for a vehicle showing up on a usb direct link
QList
<
SerialLink
*>
_activeLinkCheckList
;
///< List of links we are waiting for a vehicle to show up on
static
const
int
_activeLinkCheckTimeoutMSecs
=
15000
;
///< Amount of time to wait for a heatbeat. Keep in mind ArduPilot stack heartbeat is slow to come.
#endif
static
const
char
*
_settingsGroup
;
static
const
char
*
_autoconnectUDPKey
;
...
...
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