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
6c1883b8
Commit
6c1883b8
authored
Nov 09, 2010
by
Mariano Lizarraga
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://github.com/tecnosapiens/qgroundcontrol
parents
b2410648
6a5655eb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
95 additions
and
48 deletions
+95
-48
qgroundcontrol.pro
qgroundcontrol.pro
+1
-0
SlugsMAV.cc
src/uas/SlugsMAV.cc
+41
-38
SlugsDataSensorView.cc
src/ui/SlugsDataSensorView.cc
+11
-5
SlugsDataSensorView.h
src/ui/SlugsDataSensorView.h
+42
-5
No files found.
qgroundcontrol.pro
View file @
6c1883b8
...
...
@@ -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 @
6c1883b8
...
...
@@ -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,22 +153,23 @@ 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
;
}
#endif
default:
...
...
src/ui/SlugsDataSensorView.cc
View file @
6c1883b8
...
...
@@ -2,6 +2,7 @@
#include "ui_SlugsDataSensorView.h"
#include <UASManager.h>
#include "SlugsMAV.h"
SlugsDataSensorView
::
SlugsDataSensorView
(
QWidget
*
parent
)
:
QWidget
(
parent
),
...
...
@@ -62,12 +63,15 @@ SlugsDataSensorView::~SlugsDataSensorView()
void
SlugsDataSensorView
::
addUAS
(
UASInterface
*
uas
)
{
if
(
uas
!=
NULL
)
SlugsMAV
*
slugsMav
=
dynamic_cast
<
SlugsMAV
*>
(
uas
);
if
(
slugsMav
!=
NULL
)
{
connect
(
uas
,
SIGNAL
(
localPositionChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
slugLocalPositionChange
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
connect
(
uas
,
SIGNAL
(
speedChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
slugSpeedLocalPositionChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
connect
(
uas
,
SIGNAL
(
attitudeChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
slugAttitudeChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
connect
(
uas
,
SIGNAL
(
slugsSensorBias
(
UASInterface
*
,
double
,
double
,
double
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
slugsSensorBiasAcelerometerChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
connect
(
slugsMav
,
SIGNAL
(
localPositionChanged
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)),
this
,
SLOT
(
slugLocalPositionChange
(
UASInterface
*
,
double
,
double
,
double
,
quint64
)));
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
)));
// Set this UAS as active if it is the first one
if
(
activeUAS
==
0
)
...
...
@@ -115,6 +119,8 @@ void SlugsDataSensorView::refresh()
}
}
...
...
src/ui/SlugsDataSensorView.h
View file @
6c1883b8
...
...
@@ -35,6 +35,7 @@ This file is part of the QGROUNDCONTROL project
#include <QWidget>
#include "UASInterface.h"
#include "SlugsMAV.h"
namespace
Ui
{
class
SlugsDataSensorView
;
...
...
@@ -77,25 +78,41 @@ public slots:
/**
* @brief Adds the UAS for data display
*
* Adds the UAS and makes all the correct connections for data display on the Widgets
*/
void
slugLocalPositionChanged
(
UASInterface
*
uasTemp
,
double
x
,
double
y
,
double
z
,
quint64
time
);
/**
* @brief Adds the UAS for data display
*
* Adds the UAS and makes all the correct connections for data display on the Widgets
*/
void
slugSpeedLocalPositionChanged
(
UASInterface
*
uasTemp
,
double
vx
,
double
vy
,
double
vz
,
quint64
time
);
/**
* @brief Adds the UAS for data display
*
* Adds the UAS and makes all the correct connections for data display on the Widgets
*/
void
slugAttitudeChanged
(
UASInterface
*
uasTemp
,
double
slugroll
,
double
slugpitch
,
double
slugyaw
,
quint64
time
);
/**
* @brief Adds the UAS for data display
*
* Adds the UAS and makes all the correct connections for data display on the Widgets
*/
void
slugsSensorBiasChanged
(
UASInterface
*
uasTemp
,
double
axb
,
double
ayb
,
...
...
@@ -104,6 +121,19 @@ public slots:
double
gyb
,
double
gzb
,
quint64
time
);
/**
* @brief Adds the UAS for data display
*
* 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);
protected:
QTimer
*
updateTimer
;
...
...
@@ -138,7 +168,14 @@ protected:
double
Gzb
;
quint64
TimeActualBias
;
//
//Diagnostic
double
diagFl1
;
double
diagFl2
;
double
diagFl3
;
int16_t
diagSh1
;
int16_t
diagSh2
;
int16_t
diagSh3
;
quint64
timeDiagnostic
;
...
...
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