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
92fd61b2
Commit
92fd61b2
authored
Jan 10, 2011
by
Mariano Lizarraga
Browse files
Removed some warning from QGCParamSlider. Fixed some merge issues in Slugs HIL Sim
parent
3ef3f654
Changes
3
Show whitespace changes
Inline
Side-by-side
src/ui/SlugsHilSim.cc
View file @
92fd61b2
...
...
@@ -25,16 +25,13 @@ This file is part of the QGROUNDCONTROL project
* @file
* @brief Configuration Window for Slugs' HIL Simulator
* @author Mariano Lizarraga <malife@gmail.com>
* @author Alejandro Molina <am.alex09@gmail.com>
*/
#include
"SlugsHilSim.h"
#include
"ui_SlugsHilSim.h"
#include
"LinkManager.h"
#include
"SlugsMAV.h"
#include
"qbytearray.h"
#include
"qhostaddress.h"
SlugsHilSim
::
SlugsHilSim
(
QWidget
*
parent
)
:
QWidget
(
parent
),
...
...
@@ -75,8 +72,8 @@ SlugsHilSim::~SlugsHilSim()
void
SlugsHilSim
::
addToCombo
(
LinkInterface
*
theLink
){
ui
->
cb_mavlinkLinks
->
addItem
(
theLink
->
getName
());
linksAvailable
.
insert
(
ui
->
cb_mavlinkLinks
->
count
(),
theLink
);
ui
->
cb_mavlinkLinks
->
addItem
(
theLink
->
getName
());
if
(
hilLink
==
NULL
){
hilLink
=
theLink
;
...
...
@@ -161,7 +158,6 @@ void SlugsHilSim::processHilDatagram(const QByteArray* datagram)
#ifdef MAVLINK_ENABLED_SLUGS
unsigned
char
i
=
0
;
mavlink_message_t
msg
;
tmpGpsTime
.
year
=
datagram
->
at
(
i
++
);
tmpGpsTime
.
month
=
datagram
->
at
(
i
++
);
...
...
@@ -217,15 +213,6 @@ void SlugsHilSim::processHilDatagram(const QByteArray* datagram)
tmpLocalPositionData
.
vy
=
getFloatFromDatagram
(
datagram
,
&
i
);
tmpLocalPositionData
.
vz
=
getFloatFromDatagram
(
datagram
,
&
i
);
// mavlink_msg_gps_date_time_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &tmpGpsTime);
// activeUas->sendMessage(hilLink, msg);
// memset(&msg, 0, sizeof(mavlink_message_t));
// mavlink_msg_gps_raw_encode(MG::SYSTEM::ID,MG::SYSTEM::COMPID, &msg, &tmpGpsRaw);
// activeUas->sendMessage(hilLink,msg);
// TODO: this is legacy of old HIL datagram. Need to remove from Simulink model
i
++
;
...
...
@@ -269,7 +256,9 @@ void SlugsHilSim::linkSelected(int cbIndex){
//hilLink = linksAvailable
// FIXME Mariano
hilLink
=
LinkManager
::
instance
()
->
getLinkForId
(
cbIndex
);
hilLink
=
linksAvailable
.
value
(
cbIndex
);
#endif
}
void
SlugsHilSim
::
sendMessageToSlugs
()
...
...
src/ui/SlugsHilSim.h
View file @
92fd61b2
...
...
@@ -30,14 +30,19 @@ This file is part of the QGROUNDCONTROL project
#ifndef SLUGSHILSIM_H
#define SLUGSHILSIM_H
#include
<stdint.h>
#include
<QWidget>
#include
<QHostAddress>
#include
<QUdpSocket>
#include
<QMessageBox>
#include
<QByteArray>
#include
"LinkInterface.h"
#include
"UAS.h"
#include
<stdint.h>
#include
"LinkManager.h"
#include
"SlugsMAV.h"
namespace
Ui
{
...
...
src/ui/designer/QGCParamSlider.cc
View file @
92fd61b2
#include
<QMenu>
#include
<QContextMenuEvent>
#include
<QSettings>
#include
"QGCParamSlider.h"
#include
"ui_QGCParamSlider.h"
#include
"UASInterface.h"
QGCParamSlider
::
QGCParamSlider
(
QWidget
*
parent
)
:
QGCToolWidgetItem
(
"Slider"
,
parent
),
parameterName
(
""
),
...
...
@@ -82,10 +84,11 @@ void QGCParamSlider::changeEvent(QEvent *e)
void
QGCParamSlider
::
writeSettings
(
QSettings
&
settings
)
{
Q_UNUSED
(
settings
);
}
void
QGCParamSlider
::
readSettings
(
const
QSettings
&
settings
)
{
Q_UNUSED
(
settings
);
}
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