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
6a5655eb
Commit
6a5655eb
authored
Nov 08, 2010
by
tecnosapiens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add messages to slugsView
parent
d7c014f1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
49 deletions
+51
-49
qgroundcontrol.pro
qgroundcontrol.pro
+1
-0
SlugsMAV.cc
src/uas/SlugsMAV.cc
+41
-39
SlugsDataSensorView.cc
src/ui/SlugsDataSensorView.cc
+1
-2
SlugsDataSensorView.h
src/ui/SlugsDataSensorView.h
+8
-8
No files found.
qgroundcontrol.pro
View file @
6a5655eb
...
...
@@ -32,6 +32,7 @@
#
include
(
"../qmapcontrol/QMapControl/QMapControl.pri"
)
#
{
#
Include
bundled
version
if
necessary
include
(
lib
/
QMapControl
/
QMapControl
.
pri
)
#
message
(
"Including bundled QMapControl version as FALLBACK. This is fine on Linux and MacOS, but not the best choice in Windows"
)
...
...
src/uas/SlugsMAV.cc
View file @
6a5655eb
...
...
@@ -30,7 +30,7 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
break
;
}
#ifdef MAVLINK_ENABLED_SLUGS
_MESSAGES_QGC
#ifdef MAVLINK_ENABLED_SLUGS
case
MAVLINK_MSG_ID_CPU_LOAD
:
{
...
...
@@ -42,11 +42,11 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
tr
(
"ControlDSC Load"
),
cpu_load
.
ctrlLoad
,
time
);
emit
valueChanged
(
uasId
,
tr
(
"Battery Volt"
),
cpu_load
.
batVolt
,
time
);
emit
slugsCPULoad
(
uasId
,
cpu_load
.
sensLoad
,
cpu_load
.
ctrlLoad
,
cpu_load
.
batVolt
,
time
);
//
emit slugsCPULoad(uasId,
//
cpu_load.sensLoad,
//
cpu_load.ctrlLoad,
//
cpu_load.batVolt,
// 0
);
break
;
}
...
...
@@ -59,11 +59,11 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
tr
(
"Static Pressure"
),
air_data
.
staticPressure
,
time
);
emit
valueChanged
(
uasId
,
tr
(
"Temp"
),
air_data
.
temperature
,
time
);
emit
slugsAirData
(
uasId
,
air_data
.
dynamicPressure
,
air_data
.
staticPressure
,
air_data
.
temperature
,
time
);
//
emit slugsAirData(uasId,
//
air_data.dynamicPressure,
//
air_data.staticPressure,
//
air_data.temperature,
//
time);
break
;
}
...
...
@@ -79,14 +79,15 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
tr
(
"Gy Bias"
),
sensor_bias
.
gyBias
,
time
);
emit
valueChanged
(
uasId
,
tr
(
"Gz Bias"
),
sensor_bias
.
gzBias
,
time
);
emit
slugsSensorBias
(
uasId
,
emit
slugsSensorBias
(
this
,
sensor_bias
.
axBias
,
sensor_bias
.
ayBias
,
sensor_bias
.
azBias
,
sensor_bias
.
gxBias
,
sensor_bias
.
gyBias
,
sensor_bias
.
gzBias
,
time
);
0
);
qDebug
()
<<
"Entro"
;
break
;
...
...
@@ -103,13 +104,14 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
tr
(
"Diag S2"
),
diagnostic
.
diagSh2
,
time
);
emit
valueChanged
(
uasId
,
tr
(
"Diag S3"
),
diagnostic
.
diagSh3
,
time
);
emit
slugsDiagnostic
(
uasId
,
diagnostic
.
diagFl1
,
diagnostic
.
diagFl2
,
diagnostic
.
diagFl3
,
diagnostic
.
diagSh1
,
diagnostic
.
diagSh2
,
diagnostic
.
diagSh3
);
// emit slugsDiagnostic(uasId,
// diagnostic.diagFl1,
// diagnostic.diagFl2,
// diagnostic.diagFl3,
// diagnostic.diagSh1,
// diagnostic.diagSh2,
// diagnostic.diagSh3,
// 0);
break
;
}
...
...
@@ -124,13 +126,13 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
"dr"
,
pilot
.
dr
,
time
);
emit
valueChanged
(
uasId
,
"de"
,
pilot
.
de
,
time
);
emit
slugsPilotConsolePWM
(
uasId
,
pilot
.
dt
,
pilot
.
dla
,
pilot
.
dra
,
pilot
.
dr
,
pilot
.
de
,
time
);
//
emit slugsPilotConsolePWM(uasId,
//
pilot.dt,
//
pilot.dla,
//
pilot.dra,
//
pilot.dr,
//
pilot.de,
// 0
);
break
;
...
...
@@ -151,18 +153,18 @@ void SlugsMAV::receiveMessage(LinkInterface* link, mavlink_message_t message)
emit
valueChanged
(
uasId
,
"da1_c"
,
pwm
.
aux1
,
time
);
emit
valueChanged
(
uasId
,
"da2_c"
,
pwm
.
aux2
,
time
);
emit
slugsPWM
(
uasId
,
pwm
.
dt_c
,
pwm
.
dla_c
,
pwm
.
dra_c
,
pwm
.
dr_c
,
pwm
.
dle_c
,
pwm
.
dre_c
,
pwm
.
dlf_c
,
pwm
.
drf_c
,
pwm
.
aux1
,
pwm
.
aux2
,
time
);
//
emit slugsPWM(uasId,
//
pwm.dt_c,
//
pwm.dla_c,
//
pwm.dra_c,
//
pwm.dr_c,
//
pwm.dle_c,
//
pwm.dre_c,
//
pwm.dlf_c,
//
pwm.drf_c,
//
pwm.aux1,
//
pwm.aux2,
// 0
);
break
;
...
...
src/ui/SlugsDataSensorView.cc
View file @
6a5655eb
...
...
@@ -71,8 +71,7 @@ void SlugsDataSensorView::addUAS(UASInterface* uas)
connect
(
slugsMav
,
SIGNAL
(
speedChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
slugSpeedLocalPositionChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
connect
(
slugsMav
,
SIGNAL
(
attitudeChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
slugAttitudeChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
connect
(
slugsMav
,
SIGNAL
(
slugsSensorBias
(
UASInterface
*
,
double
,
double
,
double
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
slugsSensorBiasAcelerometerChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
// connect(slugsMav, SIGNAL(slugsDiagnostic(UASInterface*,double,double,double,int16_t,int16_t,int16_t,quint64)),
// this, SLOT());
// Set this UAS as active if it is the first one
if
(
activeUAS
==
0
)
...
...
src/ui/SlugsDataSensorView.h
View file @
6a5655eb
...
...
@@ -126,14 +126,14 @@ public slots:
*
* Adds the UAS and makes all the correct connections for data display on the Widgets
*/
void
slugsDiagnosticMessageChanged
(
UASInterface
*
uasTemp
,
double
diagfl1
,
double
diagfl2
,
double
diagfl3
,
int16_t
diagsh1
,
int16_t
diagsh2
,
int16_t
diagsh3
,
quint64
time
);
//
void slugsDiagnosticMessageChanged(UASInterface* uasTemp,
//
double diagfl1,
//
double diagfl2,
//
double diagfl3,
//
int16_t diagsh1,
//
int16_t diagsh2,
//
int16_t diagsh3,
//
quint64 time);
protected:
QTimer
*
updateTimer
;
...
...
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