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
75def93b
Commit
75def93b
authored
Jul 16, 2013
by
Bill Bonney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APM ToolBar chnages
parent
db3e3dab
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
4 deletions
+76
-4
qgroundcontrol.pro
qgroundcontrol.pro
+2
-1
ApmToolBar.qml
qml/ApmToolBar.qml
+41
-2
DigitalDisplay.qml
qml/components/DigitalDisplay.qml
+30
-0
SerialLink.cc
src/comm/SerialLink.cc
+1
-0
apmtoolbar.cpp
src/ui/apmtoolbar.cpp
+2
-1
No files found.
qgroundcontrol.pro
View file @
75def93b
...
...
@@ -773,7 +773,8 @@ unix:!macx:!symbian: LIBS += -losg
OTHER_FILES
+=
\
dongfang_notes
.
txt
\
src
/
ui
/
dongfang
-
scrapyard
.
txt
src
/
ui
/
dongfang
-
scrapyard
.
txt
\
qml
/
components
/
DigitalDisplay
.
qml
OTHER_FILES
+=
\
qml
/
ApmToolBar
.
qml
\
...
...
qml/ApmToolBar.qml
View file @
75def93b
...
...
@@ -25,6 +25,7 @@ Rectangle {
}
}
// [BB] The code below should work, not sure why. replaced with code above
// Connections {
// target: globalObj
// onMAVConnected: {
...
...
@@ -43,7 +44,7 @@ Rectangle {
anchors.left
:
parent
.
left
spacing
:
2
Rectangle
{
Rectangle
{
// Spacer
width
:
5
height
:
parent
.
height
color
:
"
black
"
...
...
@@ -94,6 +95,44 @@ Rectangle {
image
:
"
./resources/apmplanner/toolbar/terminal.png
"
onClicked
:
globalObj
.
triggerTerminalView
()
}
Rectangle
{
// Spacer
width
:
5
height
:
parent
.
height
color
:
"
black
"
}
// DigitalDisplay { // Information Pane
// title:"Mode"
// textValue: "Stabilize"
// color: "black"
// }
// DigitalDisplay { // Information Pane
// title: "Speed"
// textValue: "11.0m/s"
// color: "black"
// }
// DigitalDisplay { // Information Pane
// title: "Alt"
// textValue: "20.0m"
// color: "black"
// }
// DigitalDisplay { // Information Pane
// title: "Volts"
// textValue: "14.8V"
// color: "black"
// }
// DigitalDisplay { // Information Pane
// title: "Current"
// textValue: "12.0A"
// color: "black"
// }
// DigitalDisplay { // Information Pane
// title: "Level"
// textValue: "77%"
// color: "black"
// }
}
Row
{
...
...
@@ -129,7 +168,7 @@ Rectangle {
onClicked
:
globalObj
.
connectMAV
()
}
Rectangle
{
Rectangle
{
// Spacer
anchors.right
:
parent
.
right
width
:
5
height
:
parent
.
height
...
...
qml/components/DigitalDisplay.qml
0 → 100644
View file @
75def93b
import
QtQuick
1.1
Rectangle
{
property
alias
title
:
displayTitle
.
text
property
string
textValue
:
"
none
"
width
:
100
height
:
parent
.
height
/
3
anchors.verticalCenter
:
parent
.
verticalCenter
border.color
:
"
white
"
Text
{
id
:
displayTitle
anchors.left
:
parent
.
left
anchors.leftMargin
:
3
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
"
blank
"
color
:
"
white
"
}
Text
{
id
:
displayValue
anchors.right
:
parent
.
right
anchors.rightMargin
:
3
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
textValue
color
:
"
white
"
}
}
src/comm/SerialLink.cc
View file @
75def93b
...
...
@@ -96,6 +96,7 @@ QVector<QString>* SerialLink::getCurrentPorts()
Q_ASSERT_X
(
m_ports
!=
NULL
,
"getCurrentPorts"
,
"m_ports is NULL"
);
m_ports
->
clear
();
// Example use QSerialPortInfo
// [TODO] make this thread safe
foreach
(
const
QSerialPortInfo
&
info
,
QSerialPortInfo
::
availablePorts
())
{
// qDebug() << "PortName : " << info.portName()
...
...
src/ui/apmtoolbar.cpp
View file @
75def93b
...
...
@@ -21,7 +21,8 @@ APMToolBar::APMToolBar(QWidget *parent):
}
QObject
*
object
=
rootObject
();
object
->
setProperty
(
"connected"
,
false
);
if
(
object
)
object
->
setProperty
(
"connected"
,
false
);
}
void
APMToolBar
::
setFlightViewAction
(
QAction
*
action
)
...
...
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