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
576441b5
Commit
576441b5
authored
Oct 06, 2011
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparation for offline WaypointList. Does not compile!!!
parent
3805b4cc
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
173 additions
and
91 deletions
+173
-91
UASWaypointManager.cc
src/uas/UASWaypointManager.cc
+156
-84
QGCWaypointListMulti.cc
src/ui/QGCWaypointListMulti.cc
+7
-0
WaypointEditableView.cc
src/ui/WaypointEditableView.cc
+3
-3
WaypointList.cc
src/ui/WaypointList.cc
+7
-4
No files found.
src/uas/UASWaypointManager.cc
View file @
576441b5
This diff is collapsed.
Click to expand it.
src/ui/QGCWaypointListMulti.cc
View file @
576441b5
...
...
@@ -10,6 +10,13 @@ QGCWaypointListMulti::QGCWaypointListMulti(QWidget *parent) :
setMinimumSize
(
600
,
80
);
connect
(
UASManager
::
instance
(),
SIGNAL
(
UASCreated
(
UASInterface
*
)),
this
,
SLOT
(
systemCreated
(
UASInterface
*
)));
connect
(
UASManager
::
instance
(),
SIGNAL
(
activeUASSet
(
int
)),
this
,
SLOT
(
systemSetActive
(
int
)));
WaypointList
*
list
=
new
WaypointList
(
ui
->
stackedWidget
,
uas
);
lists
.
insert
(
uas
->
getUASID
(),
list
);
ui
->
stackedWidget
->
addWidget
(
list
);
// Ensure widget is deleted when system is deleted
connect
(
uas
,
SIGNAL
(
destroyed
(
QObject
*
)),
this
,
SLOT
(
systemDeleted
(
QObject
*
)));
}
void
QGCWaypointListMulti
::
systemDeleted
(
QObject
*
uas
)
...
...
src/ui/WaypointEditableView.cc
View file @
576441b5
...
...
@@ -364,13 +364,13 @@ void WaypointEditableView::changedCurrent(int state)
{
if
(
wp
->
getCurrent
()
==
true
)
//User clicked on the waypoint, that is already current
{
qDebug
()
<<
"Editable "
<<
wp
->
getId
()
<<
" changedCurrent: State 0, current true"
;
//
qDebug() << "Editable " << wp->getId() << " changedCurrent: State 0, current true" ;
m_ui
->
selectedBox
->
setChecked
(
true
);
m_ui
->
selectedBox
->
setCheckState
(
Qt
::
Checked
);
}
else
{
qDebug
()
<<
"Editable "
<<
wp
->
getId
()
<<
" changedCurrent: State 0, current false"
;
//
qDebug() << "Editable " << wp->getId() << " changedCurrent: State 0, current false";
m_ui
->
selectedBox
->
setChecked
(
false
);
m_ui
->
selectedBox
->
setCheckState
(
Qt
::
Unchecked
);
//wp->setCurrent(false);
...
...
@@ -378,7 +378,7 @@ void WaypointEditableView::changedCurrent(int state)
}
else
{
qDebug
()
<<
"Editable "
<<
wp
->
getId
()
<<
" changedCurrent: State 2"
;
//
qDebug() << "Editable " << wp->getId() << " changedCurrent: State 2";
wp
->
setCurrent
(
true
);
emit
changeCurrentWaypoint
(
wp
->
getId
());
//the slot changeCurrentWaypoint() in WaypointList sets all other current flags to false
}
...
...
src/ui/WaypointList.cc
View file @
576441b5
...
...
@@ -93,7 +93,10 @@ WaypointList::WaypointList(QWidget *parent, UASInterface* uas) :
// SET UAS AFTER ALL SIGNALS/SLOTS ARE CONNECTED
setUAS
(
uas
);
if
(
uas
)
{
setUAS
(
uas
);
}
// STATUS LABEL
updateStatusLabel
(
""
);
...
...
@@ -295,6 +298,7 @@ void WaypointList::updateStatusLabel(const QString &string)
m_ui
->
viewStatusLabel
->
setText
(
string
);
}
// Request UASWaypointManager to send the SET_CURRENT message to UAV
void
WaypointList
::
changeCurrentWaypoint
(
quint16
seq
)
{
if
(
uas
)
...
...
@@ -303,11 +307,9 @@ void WaypointList::changeCurrentWaypoint(quint16 seq)
}
}
// Request UASWaypointManager to set the new "current" and make sure all other waypoints are not "current"
void
WaypointList
::
currentWaypointEditableChanged
(
quint16
seq
)
{
qDebug
()
<<
"WaypointList::currentWaypointEditableChanged"
;
if
(
uas
)
{
uas
->
getWaypointManager
()
->
setCurrentEditable
(
seq
);
...
...
@@ -335,6 +337,7 @@ void WaypointList::currentWaypointEditableChanged(quint16 seq)
}
// Update waypointViews to correctly indicate the new current waypoint
void
WaypointList
::
currentWaypointViewOnlyChanged
(
quint16
seq
)
{
if
(
uas
)
...
...
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