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
d83df23e
Commit
d83df23e
authored
Oct 11, 2010
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added data recording controls
parent
23d31e93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
UAS.cc
src/uas/UAS.cc
+21
-0
UAS.h
src/uas/UAS.h
+4
-0
UASControlWidget.cc
src/ui/uas/UASControlWidget.cc
+18
-0
No files found.
src/uas/UAS.cc
View file @
d83df23e
...
...
@@ -611,6 +611,27 @@ void UAS::startRadioControlCalibration()
sendMessage
(
msg
);
}
void
UAS
::
startDataRecording
()
{
mavlink_message_t
msg
;
mavlink_msg_action_pack
(
mavlink
->
getSystemId
(),
mavlink
->
getComponentId
(),
&
msg
,
uasId
,
MAV_COMP_ID_IMU
,
MAV_ACTION_REC_START
);
sendMessage
(
msg
);
}
void
UAS
::
pauseDataRecording
()
{
mavlink_message_t
msg
;
mavlink_msg_action_pack
(
mavlink
->
getSystemId
(),
mavlink
->
getComponentId
(),
&
msg
,
uasId
,
MAV_COMP_ID_IMU
,
MAV_ACTION_REC_PAUSE
);
sendMessage
(
msg
);
}
void
UAS
::
stopDataRecording
()
{
mavlink_message_t
msg
;
mavlink_msg_action_pack
(
mavlink
->
getSystemId
(),
mavlink
->
getComponentId
(),
&
msg
,
uasId
,
MAV_COMP_ID_IMU
,
MAV_ACTION_REC_STOP
);
sendMessage
(
msg
);
}
void
UAS
::
startMagnetometerCalibration
()
{
mavlink_message_t
msg
;
...
...
src/uas/UAS.h
View file @
d83df23e
...
...
@@ -247,6 +247,10 @@ public slots:
void
startGyroscopeCalibration
();
void
startPressureCalibration
();
void
startDataRecording
();
void
pauseDataRecording
();
void
stopDataRecording
();
signals:
/** @brief The main/battery voltage has changed/was updated */
...
...
src/ui/uas/UASControlWidget.cc
View file @
d83df23e
...
...
@@ -104,6 +104,24 @@ void UASControlWidget::setUAS(UASInterface* uas)
ui
.
controlStatusLabel
->
setText
(
tr
(
"Connected to "
)
+
uas
->
getUASName
());
// Check if additional controls should be loaded
UAS
*
mav
=
dynamic_cast
<
UAS
*>
(
uas
);
if
(
mav
)
{
QPushButton
*
startRecButton
=
new
QPushButton
(
tr
(
"Record"
));
connect
(
startRecButton
,
SIGNAL
(
clicked
()),
mav
,
SLOT
(
startDataRecording
()));
ui
.
gridLayout
->
addWidget
(
startRecButton
,
10
,
1
);
QPushButton
*
pauseRecButton
=
new
QPushButton
(
tr
(
"Pause"
));
connect
(
pauseRecButton
,
SIGNAL
(
clicked
()),
mav
,
SLOT
(
pauseDataRecording
()));
ui
.
gridLayout
->
addWidget
(
pauseRecButton
,
10
,
2
);
QPushButton
*
stopRecButton
=
new
QPushButton
(
tr
(
"Stop"
));
connect
(
stopRecButton
,
SIGNAL
(
clicked
()),
mav
,
SLOT
(
stopDataRecording
()));
ui
.
gridLayout
->
addWidget
(
stopRecButton
,
10
,
3
);
}
this
->
uas
=
uas
->
getUASID
();
setBackgroundColor
(
uas
->
getColor
());
}
...
...
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