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
0ed3c12d
Commit
0ed3c12d
authored
Dec 15, 2010
by
Mariano Lizarraga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the Raw IMU message to the SLUGS data view display
parent
eff0195a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
SlugsMAV.cc
src/uas/SlugsMAV.cc
+8
-7
MainWindow.cc
src/ui/MainWindow.cc
+5
-4
No files found.
src/uas/SlugsMAV.cc
View file @
0ed3c12d
...
...
@@ -69,6 +69,10 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
#ifdef MAVLINK_ENABLED_SLUGS
case
MAVLINK_MSG_ID_RAW_IMU
:
mavlink_msg_raw_imu_decode
(
&
message
,
&
mlRawImuData
);
break
;
case
MAVLINK_MSG_ID_BOOT
:
mavlink_msg_boot_decode
(
&
message
,
&
mlBoot
);
emit
slugsBootMsg
(
uasId
,
mlBoot
);
...
...
@@ -132,7 +136,7 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
case
MAVLINK_MSG_ID_CTRL_SRFC_PT
:
//181
break
;
break
;
case
MAVLINK_MSG_ID_PID
:
//182
memset
(
&
mlSinglePid
,
0
,
sizeof
(
mavlink_pid_t
));
...
...
@@ -140,8 +144,6 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
// qDebug() << "\nSLUGS RECEIVED PID Message = "<<mlSinglePid.idx;
emit
slugsPidValues
(
uasId
,
mlSinglePid
);
break
;
case
MAVLINK_MSG_ID_SLUGS_ACTION
:
//183
...
...
@@ -174,10 +176,9 @@ void SlugsMAV::emitSignals (void){
case
3
:
emit
remoteControlChannelScaledChanged
(
0
,(
mlPilotConsoleData
.
de
-
1000.0
f
)
/
1000.0
f
);
emit
remoteControlChannelScaledChanged
(
1
,(
mlPilotConsoleData
.
dla
-
1000.0
f
)
/
1000.0
f
);
emit
remoteControlChannelScaledChanged
(
2
,(
mlPilotConsoleData
.
dr
-
1000.0
f
)
/
1000.0
f
);
emit
remoteControlChannelScaledChanged
(
3
,(
mlPilotConsoleData
.
dra
-
1000.0
f
)
/
1000.0
f
);
emit
remoteControlChannelScaledChanged
(
0
,(
mlPilotConsoleData
.
dt
-
1000.0
f
)
/
1000.0
f
);
emit
remoteControlChannelScaledChanged
(
1
,(
mlPilotConsoleData
.
dla
-
1000.0
f
)
/
1000.0
f
);
emit
remoteControlChannelScaledChanged
(
2
,(
mlPilotConsoleData
.
dr
-
1000.0
f
)
/
1000.0
f
);
emit
remoteControlChannelScaledChanged
(
3
,(
mlPilotConsoleData
.
dra
-
1000.0
f
)
/
1000.0
f
);
emit
slugsPWM
(
uasId
,
mlPwmCommands
);
break
;
...
...
src/ui/MainWindow.cc
View file @
0ed3c12d
...
...
@@ -215,7 +215,8 @@ void MainWindow::buildPxWidgets()
void
MainWindow
::
buildSlugsWidgets
()
{
// Center widgets
linechartWidget
=
new
Linecharts
(
this
);
// linechartWidget = new Linecharts(this);
// addToCentralWidgetsMenu(linechartWidget, "Line Plots", SLOT(showCentralWidget()), CENTRAL_LINECHART);
// Dock widgets
headUpDockWidget
=
new
QDockWidget
(
tr
(
"Control Indicator"
),
this
);
...
...
@@ -1145,7 +1146,7 @@ void MainWindow::presentView() {
if
(
settings
.
value
(
buildMenuKey
(
SUB_SECTION_CHECKED
,
MENU_HUD
,
currentView
)).
toBool
()){
tmpHud
->
start
();
addDockWidget
(
static_cast
<
Qt
::
DockWidgetArea
>
(
settings
.
value
(
buildMenuKey
(
SUB_SECTION_LOCATION
,
MENU_HUD
,
currentView
)).
toInt
()),
h
si
DockWidget
);
h
eadUp
DockWidget
);
headUpDockWidget
->
show
();
}
else
{
tmpHud
->
stop
();
...
...
@@ -1547,7 +1548,7 @@ void MainWindow::load3DView()
========== ATTIC =================
==================================
void MainWindow::build
Common
Widgets()
void MainWindow::buildWidgets()
{
//FIXME: memory of acceptList will never be freed again
QStringList* acceptList = new QStringList();
...
...
@@ -1690,7 +1691,7 @@ void MainWindow::connectWidgets()
}
void MainWindow::arrangeC
ommonC
enterStack()
void MainWindow::arrangeCenterStack()
{
QStackedWidget *centerStack = new QStackedWidget(this);
...
...
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