Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
222607d1
Commit
222607d1
authored
Jun 02, 2010
by
lm
Browse files
Added support to set ground time as linechart time
parent
5b6fa856
Changes
2
Show whitespace changes
Inline
Side-by-side
src/uas/UAS.cc
View file @
222607d1
...
...
@@ -224,7 +224,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
// COMMUNICATIONS DROP RATE
emit
dropRateChanged
(
this
->
getUASID
(),
state
.
packet_drop
);
qDebug
()
<<
__FILE__
<<
__LINE__
<<
"RCV LOSS: "
<<
state
.
packet_drop
;
//
qDebug() << __FILE__ << __LINE__ << "RCV LOSS: " << state.packet_drop;
// AUDIO
if
(
modechanged
&&
statechanged
)
...
...
@@ -237,7 +237,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
// Output the one message
audiostring
+=
modeAudio
+
stateAudio
;
}
if
(
state
.
status
==
(
int
)
MAV_STATE_CRITICAL
||
state
.
status
==
(
int
)
MAV_STATE_EMERGENCY
)
if
(
(
int
)
state
.
status
==
(
int
)
MAV_STATE_CRITICAL
||
state
.
status
==
(
int
)
MAV_STATE_EMERGENCY
)
{
GAudioOutput
::
instance
()
->
startEmergency
();
}
...
...
src/ui/linechart/LinechartWidget.cc
View file @
222607d1
...
...
@@ -119,7 +119,7 @@ void LinechartWidget::createLayout()
// activePlot = getPlot(0);
// plotContainer->setPlot(activePlot);
layout
->
addWidget
(
activePlot
,
0
,
0
,
1
,
5
);
layout
->
addWidget
(
activePlot
,
0
,
0
,
1
,
6
);
layout
->
setRowStretch
(
0
,
10
);
layout
->
setRowStretch
(
1
,
0
);
...
...
@@ -156,6 +156,7 @@ void LinechartWidget::createLayout()
QToolButton
*
timeButton
=
new
QToolButton
(
this
);
timeButton
->
setText
(
tr
(
"Ground Time"
));
timeButton
->
setCheckable
(
true
);
timeButton
->
setChecked
(
false
);
layout
->
addWidget
(
timeButton
,
1
,
4
);
layout
->
setColumnStretch
(
4
,
0
);
connect
(
timeButton
,
SIGNAL
(
clicked
(
bool
)),
activePlot
,
SLOT
(
enforceGroundTime
(
bool
)));
...
...
@@ -172,8 +173,8 @@ void LinechartWidget::createLayout()
// Add scroll bar to layout and make sure it gets all available space
layout
->
addWidget
(
scrollbar
,
1
,
4
);
layout
->
setColumnStretch
(
4
,
10
);
layout
->
addWidget
(
scrollbar
,
1
,
5
);
layout
->
setColumnStretch
(
5
,
10
);
ui
.
diagramGroupBox
->
setLayout
(
layout
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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