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
6ba52995
Commit
6ba52995
authored
May 24, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Threading fixes
parent
faab2eb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
UAS.cc
src/uas/UAS.cc
+10
-14
MainWindow.cc
src/ui/MainWindow.cc
+2
-1
No files found.
src/uas/UAS.cc
View file @
6ba52995
...
...
@@ -138,7 +138,7 @@ UAS::UAS(MAVLinkProtocol* protocol, QThread* thread, int id) : UASInterface(),
airSpeed
(
std
::
numeric_limits
<
double
>::
quiet_NaN
()),
groundSpeed
(
std
::
numeric_limits
<
double
>::
quiet_NaN
()),
waypointManager
(),
waypointManager
(
this
),
attitudeKnown
(
false
),
attitudeStamped
(
false
),
...
...
@@ -153,7 +153,7 @@ UAS::UAS(MAVLinkProtocol* protocol, QThread* thread, int id) : UASInterface(),
paramsOnceRequested
(
false
),
paramMgr
(),
paramMgr
(
this
),
simulation
(
0
),
// The protected members.
...
...
@@ -168,9 +168,6 @@ UAS::UAS(MAVLinkProtocol* protocol, QThread* thread, int id) : UASInterface(),
_thread
(
thread
)
{
moveToThread
(
thread
);
waypointManager
.
moveToThread
(
thread
);
paramMgr
.
moveToThread
(
thread
);
statusTimeout
.
moveToThread
(
thread
);
for
(
unsigned
int
i
=
0
;
i
<
255
;
++
i
)
{
...
...
@@ -196,42 +193,42 @@ UAS::UAS(MAVLinkProtocol* protocol, QThread* thread, int id) : UASInterface(),
connect
(
newAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
toggleAutonomy
()));
actions
.
append
(
newAction
);
newAction
=
new
QAction
(
tr
(
"Go home"
),
th
is
);
newAction
=
new
QAction
(
tr
(
"Go home"
),
th
read
);
newAction
->
setToolTip
(
tr
(
"Command the UAS to return to its home position"
));
connect
(
newAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
home
()));
actions
.
append
(
newAction
);
newAction
=
new
QAction
(
tr
(
"Land"
),
th
is
);
newAction
=
new
QAction
(
tr
(
"Land"
),
th
read
);
newAction
->
setToolTip
(
tr
(
"Command the UAS to land"
));
connect
(
newAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
land
()));
actions
.
append
(
newAction
);
newAction
=
new
QAction
(
tr
(
"Launch"
),
th
is
);
newAction
=
new
QAction
(
tr
(
"Launch"
),
th
read
);
newAction
->
setToolTip
(
tr
(
"Command the UAS to launch itself and begin its mission"
));
connect
(
newAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
launch
()));
actions
.
append
(
newAction
);
newAction
=
new
QAction
(
tr
(
"Resume"
),
th
is
);
newAction
=
new
QAction
(
tr
(
"Resume"
),
th
read
);
newAction
->
setToolTip
(
tr
(
"Command the UAS to continue its mission"
));
connect
(
newAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
go
()));
actions
.
append
(
newAction
);
newAction
=
new
QAction
(
tr
(
"Stop"
),
th
is
);
newAction
=
new
QAction
(
tr
(
"Stop"
),
th
read
);
newAction
->
setToolTip
(
tr
(
"Command the UAS to halt and hold position"
));
connect
(
newAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
halt
()));
actions
.
append
(
newAction
);
newAction
=
new
QAction
(
tr
(
"Go autonomous"
),
th
is
);
newAction
=
new
QAction
(
tr
(
"Go autonomous"
),
th
read
);
newAction
->
setToolTip
(
tr
(
"Set the UAS into an autonomous control mode"
));
connect
(
newAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
goAutonomous
()));
actions
.
append
(
newAction
);
newAction
=
new
QAction
(
tr
(
"Go manual"
),
th
is
);
newAction
=
new
QAction
(
tr
(
"Go manual"
),
th
read
);
newAction
->
setToolTip
(
tr
(
"Set the UAS into a manual control mode"
));
connect
(
newAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
goManual
()));
actions
.
append
(
newAction
);
newAction
=
new
QAction
(
tr
(
"Toggle autonomy"
),
th
is
);
newAction
=
new
QAction
(
tr
(
"Toggle autonomy"
),
th
read
);
newAction
->
setToolTip
(
tr
(
"Toggle between manual and full-autonomy"
));
connect
(
newAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
toggleAutonomy
()));
actions
.
append
(
newAction
);
...
...
@@ -373,7 +370,6 @@ void UAS::updateState()
GAudioOutput
::
instance
()
->
notifyNegative
();
}
}
qDebug
()
<<
"UPDATE STATE:"
<<
(
heartbeatInterval
/
1000
)
<<
"milliseconds, LOST:"
<<
connectionLost
;
}
/**
...
...
src/ui/MainWindow.cc
View file @
6ba52995
...
...
@@ -760,6 +760,7 @@ void MainWindow::loadDockWidget(const QString& name)
{
if
(
menuActionHelper
->
containsDockWidget
(
currentView
,
name
))
return
;
if
(
name
.
startsWith
(
"HIL_CONFIG"
))
{
//It's a HIL widget.
...
...
@@ -826,7 +827,7 @@ void MainWindow::loadDockWidget(const QString& name)
}
else
if
(
name
==
"HEAD_UP_DISPLAY_DOCKWIDGET"
)
{
createDockWidget
(
centerStack
->
currentWidget
(),
new
HUD
(
320
,
240
,
this
),
tr
(
"
Head Up Display
"
),
"HEAD_UP_DISPLAY_DOCKWIDGET"
,
currentView
,
Qt
::
RightDockWidgetArea
);
createDockWidget
(
centerStack
->
currentWidget
(),
new
HUD
(
320
,
240
,
this
),
tr
(
"
Video Downlink
"
),
"HEAD_UP_DISPLAY_DOCKWIDGET"
,
currentView
,
Qt
::
RightDockWidgetArea
);
}
else
if
(
name
==
"UAS_INFO_QUICKVIEW_DOCKWIDGET"
)
{
...
...
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