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
f8c19946
Commit
f8c19946
authored
May 02, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Usability fixes on status bar
parent
ae15256e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
12 deletions
+41
-12
style-indoor.css
files/styles/style-indoor.css
+12
-5
QGCMAVLinkLogPlayer.cc
src/ui/QGCMAVLinkLogPlayer.cc
+6
-0
QGCMAVLinkLogPlayer.ui
src/ui/QGCMAVLinkLogPlayer.ui
+1
-1
QGCStatusBar.cc
src/ui/QGCStatusBar.cc
+1
-1
QGCVehicleConfig.cc
src/ui/QGCVehicleConfig.cc
+21
-5
No files found.
files/styles/style-indoor.css
View file @
f8c19946
...
...
@@ -178,12 +178,7 @@ QDoubleSpinBox::down-button {
}
QPushButton
{
/*font-weight: bold;
min-height: 18px;
max-height: 18px;
min-width: 60px;*/
min-height
:
20px
;
/*min-width: 24px;*/
max-height
:
20px
;
border
:
1px
solid
#465158
;
margin
:
1px
;
...
...
@@ -193,6 +188,10 @@ QPushButton {
background-color
:
qlineargradient
(
x1
:
0
,
y1
:
0
,
x2
:
0
,
y2
:
1
,
stop
:
0
#59666f
,
stop
:
1
#414B52
);
}
QPushButton
:disabled
{
background-color
:
qlineargradient
(
x1
:
0
,
y1
:
0
,
x2
:
0
,
y2
:
1
,
stop
:
0
#232228
,
stop
:
1
#020208
);
}
QPushButton
:checked
{
background-color
:
qlineargradient
(
x1
:
0
,
y1
:
0
,
x2
:
0
,
y2
:
1
,
stop
:
0
#09A2B2
,
stop
:
1
#414B52
);
}
...
...
@@ -214,6 +213,10 @@ QToolButton {
background-color
:
qlineargradient
(
x1
:
0
,
y1
:
0
,
x2
:
0
,
y2
:
1
,
stop
:
0
#59666f
,
stop
:
1
#414B52
);
}
QToolButton
:disabled
{
background-color
:
qlineargradient
(
x1
:
0
,
y1
:
0
,
x2
:
0
,
y2
:
1
,
stop
:
0
#232228
,
stop
:
1
#020208
);
}
QToolButton
:checked
{
background-color
:
qlineargradient
(
x1
:
0
,
y1
:
0
,
x2
:
0
,
y2
:
1
,
stop
:
0
#09A2B2
,
stop
:
1
#414B52
);
}
...
...
@@ -435,6 +438,10 @@ QLabel {
background-color
:
transparent
;
}
QLabel
:disabled
{
color
:
#353535
;
}
QLabel
#toolBarNameLabel
{
font
:
bold
16px
;
color
:
#3C7B9E
;
...
...
src/ui/QGCMAVLinkLogPlayer.cc
View file @
f8c19946
...
...
@@ -48,6 +48,9 @@ QGCMAVLinkLogPlayer::QGCMAVLinkLogPlayer(MAVLinkProtocol* mavlink, QWidget *pare
ui
->
playButton
->
setEnabled
(
false
);
ui
->
speedSlider
->
setEnabled
(
false
);
ui
->
positionSlider
->
setEnabled
(
false
);
ui
->
speedLabel
->
setEnabled
(
false
);
ui
->
logFileNameLabel
->
setEnabled
(
false
);
ui
->
logStatsLabel
->
setEnabled
(
false
);
loadSettings
();
}
...
...
@@ -263,6 +266,9 @@ bool QGCMAVLinkLogPlayer::loadLogFile(const QString& file)
ui
->
playButton
->
setEnabled
(
true
);
ui
->
speedSlider
->
setEnabled
(
true
);
ui
->
positionSlider
->
setEnabled
(
true
);
ui
->
speedLabel
->
setEnabled
(
true
);
ui
->
logFileNameLabel
->
setEnabled
(
true
);
ui
->
logStatsLabel
->
setEnabled
(
true
);
// Check if logging is still enabled
if
(
mavlink
->
loggingEnabled
())
...
...
src/ui/QGCMAVLinkLogPlayer.ui
View file @
f8c19946
...
...
@@ -135,7 +135,7 @@
<string>
Select the logfile to replay
</string>
</property>
<property
name=
"text"
>
<string>
Select F
ile
</string>
<string>
Replay Logf
ile
</string>
</property>
</widget>
</item>
...
...
src/ui/QGCStatusBar.cc
View file @
f8c19946
...
...
@@ -61,7 +61,7 @@ void QGCStatusBar::setLogPlayer(QGCMAVLinkLogPlayer* player)
this
->
player
=
player
;
addPermanentWidget
(
player
);
connect
(
toggleLoggingButton
,
SIGNAL
(
clicked
(
bool
)),
this
,
SLOT
(
logging
(
bool
)));
//connect(MainWindow::instance()->getMAVLink(), SIGNAL(loggingChanged(bool)), toggleLoggingButton, SLOT(setChecked(bool)));
// XXX Mutex issue if called like this
// toggleLoggingButton->blockSignals(true);
...
...
src/ui/QGCVehicleConfig.cc
View file @
f8c19946
...
...
@@ -8,6 +8,9 @@
#endif
#include <QTimer>
#include <QDir>
#include <QXmlStreamReader>
#include <QMessageBox>
#include "QGCVehicleConfig.h"
#include "UASManager.h"
...
...
@@ -109,20 +112,33 @@ void QGCVehicleConfig::toggleCalibrationRC(bool enabled)
void
QGCVehicleConfig
::
setTrimPositions
()
{
// Set trim for roll, pitch, yaw, throttle
rcTrim
[
rcMapping
[
0
]]
=
rcValue
[
rcMapping
[
0
]];
// roll
rcTrim
[
rcMapping
[
1
]]
=
rcValue
[
rcMapping
[
1
]];
// pitch
rcTrim
[
rcMapping
[
2
]]
=
rcValue
[
rcMapping
[
2
]];
// yaw
// Set trim to min if stick is close to min
if
(
abs
(
rcValue
[
rcMapping
[
3
]]
-
rcMin
[
rcMapping
[
3
]])
<
100
)
{
rcTrim
[
rcMapping
[
3
]]
=
rcMin
[
rcMapping
[
3
]];
// throttle
}
// Set trim to max if stick is close to max
if
(
abs
(
rcValue
[
rcMapping
[
3
]]
-
rcMax
[
rcMapping
[
3
]])
<
100
)
else
if
(
abs
(
rcValue
[
rcMapping
[
3
]]
-
rcMax
[
rcMapping
[
3
]])
<
100
)
{
rcTrim
[
rcMapping
[
3
]]
=
rcMax
[
rcMapping
[
3
]];
// throttle
}
else
{
// Reject
QMessageBox
msgBox
;
msgBox
.
setText
(
tr
(
"Throttle Stick Trim Position Invalid"
));
msgBox
.
setInformativeText
(
tr
(
"The throttle stick is not in the min position. Please set it to the minimum value"
));
msgBox
.
setStandardButtons
(
QMessageBox
::
Ok
);
msgBox
.
setDefaultButton
(
QMessageBox
::
Ok
);
(
void
)
msgBox
.
exec
();
}
// Set trim for roll, pitch, yaw, throttle
rcTrim
[
rcMapping
[
0
]]
=
rcValue
[
rcMapping
[
0
]];
// roll
rcTrim
[
rcMapping
[
1
]]
=
rcValue
[
rcMapping
[
1
]];
// pitch
rcTrim
[
rcMapping
[
2
]]
=
rcValue
[
rcMapping
[
2
]];
// yaw
rcTrim
[
rcMapping
[
4
]]
=
((
rcMax
[
rcMapping
[
4
]]
-
rcMin
[
rcMapping
[
4
]])
/
2.0
f
)
+
rcMin
[
rcMapping
[
4
]];
// mode sw
rcTrim
[
rcMapping
[
5
]]
=
((
rcMax
[
rcMapping
[
5
]]
-
rcMin
[
rcMapping
[
5
]])
/
2.0
f
)
+
rcMin
[
rcMapping
[
5
]];
// aux 1
rcTrim
[
rcMapping
[
6
]]
=
((
rcMax
[
rcMapping
[
6
]]
-
rcMin
[
rcMapping
[
6
]])
/
2.0
f
)
+
rcMin
[
rcMapping
[
6
]];
// aux 2
...
...
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