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
16a64ab0
Commit
16a64ab0
authored
Aug 29, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1799 from Prioria/bugfixes
QGC bugfixes
parents
33d375bb
9e047cc0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
12 deletions
+18
-12
SetupView.cc
src/VehicleSetup/SetupView.cc
+4
-0
VehicleComponent.h
src/VehicleSetup/VehicleComponent.h
+1
-1
QGCFlightGearLink.cc
src/comm/QGCFlightGearLink.cc
+3
-2
QGCHilLink.h
src/comm/QGCHilLink.h
+5
-0
UAS.cc
src/uas/UAS.cc
+1
-1
LinechartPlot.cc
src/ui/linechart/LinechartPlot.cc
+3
-8
LinechartWidget.cc
src/ui/linechart/LinechartWidget.cc
+1
-0
No files found.
src/VehicleSetup/SetupView.cc
View file @
16a64ab0
...
...
@@ -106,6 +106,7 @@ void SetupView::showFirmware(void)
"showFirmwarePanel"
,
Q_RETURN_ARG
(
QVariant
,
returnedValue
));
Q_ASSERT
(
success
);
Q_UNUSED
(
success
);
#endif
}
...
...
@@ -116,6 +117,7 @@ void SetupView::showParameters(void)
"showParametersPanel"
,
Q_RETURN_ARG
(
QVariant
,
returnedValue
));
Q_ASSERT
(
success
);
Q_UNUSED
(
success
);
}
void
SetupView
::
showSummary
(
void
)
...
...
@@ -125,6 +127,7 @@ void SetupView::showSummary(void)
"showSummaryPanel"
,
Q_RETURN_ARG
(
QVariant
,
returnedValue
));
Q_ASSERT
(
success
);
Q_UNUSED
(
success
);
}
void
SetupView
::
showVehicleComponentSetup
(
VehicleComponent
*
vehicleComponent
)
...
...
@@ -135,6 +138,7 @@ void SetupView::showVehicleComponentSetup(VehicleComponent* vehicleComponent)
Q_RETURN_ARG
(
QVariant
,
returnedValue
),
Q_ARG
(
QVariant
,
QVariant
::
fromValue
((
VehicleComponent
*
)
vehicleComponent
)));
Q_ASSERT
(
success
);
Q_UNUSED
(
success
);
}
#endif
...
...
src/VehicleSetup/VehicleComponent.h
View file @
16a64ab0
...
...
@@ -49,7 +49,7 @@ class VehicleComponent : public QObject
Q_PROPERTY
(
QString
setupStateDescription
READ
setupStateDescription
STORED
false
)
Q_PROPERTY
(
QString
iconResource
READ
iconResource
CONSTANT
)
Q_PROPERTY
(
QUrl
setupSource
READ
setupSource
CONSTANT
)
Q_PROPERTY
(
QUrl
summaryQmlSource
READ
summaryQmlSource
CONSTANT
)
;
Q_PROPERTY
(
QUrl
summaryQmlSource
READ
summaryQmlSource
CONSTANT
)
Q_PROPERTY
(
QString
prerequisiteSetup
READ
prerequisiteSetup
)
public:
...
...
src/comm/QGCFlightGearLink.cc
View file @
16a64ab0
...
...
@@ -70,6 +70,7 @@ QGCFlightGearLink::QGCFlightGearLink(UASInterface* mav, QString startupArguments
// We need a mechanism so show error message from our FGLink thread on the UI thread. This signal connection will do that for us.
connect
(
this
,
&
QGCFlightGearLink
::
showCriticalMessageFromThread
,
qgcApp
(),
&
QGCApplication
::
criticalMessageBoxOnMainThread
);
connect
(
this
,
&
QGCFlightGearLink
::
disconnectSim
,
this
,
&
QGCFlightGearLink
::
disconnectSimulation
);
}
QGCFlightGearLink
::~
QGCFlightGearLink
()
...
...
@@ -496,13 +497,13 @@ bool QGCFlightGearLink::disconnectSimulation()
if
(
_fgProcess
)
{
_fgProcess
->
close
();
delete
_fgProcess
;
_fgProcess
->
deleteLater
()
;
_fgProcess
=
NULL
;
}
if
(
_udpCommSocket
)
{
_udpCommSocket
->
close
();
delete
_udpCommSocket
;
_udpCommSocket
->
deleteLater
()
;
_udpCommSocket
=
NULL
;
}
...
...
src/comm/QGCHilLink.h
View file @
16a64ab0
...
...
@@ -83,6 +83,11 @@ signals:
**/
void
simulationDisconnected
();
/**
* @brief Thread safe signal to disconnect simulator from other threads
**/
void
disconnectSim
();
/**
* @brief This signal is emitted instantly when the link status changes
**/
...
...
src/uas/UAS.cc
View file @
16a64ab0
...
...
@@ -3227,7 +3227,7 @@ void UAS::startHil()
void
UAS
::
stopHil
()
{
if
(
simulation
&&
simulation
->
isConnected
())
{
simulation
->
disconnectSim
ulation
();
simulation
->
disconnectSim
();
setMode
(
base_mode
&
~
MAV_MODE_FLAG_HIL_ENABLED
,
custom_mode
);
qDebug
()
<<
__FILE__
<<
__LINE__
<<
"HIL is onboard not enabled, trying to disable."
;
}
...
...
src/ui/linechart/LinechartPlot.cc
View file @
16a64ab0
...
...
@@ -786,14 +786,9 @@ void TimeSeriesData::setAverageWindowSize(int windowSize)
void
TimeSeriesData
::
append
(
quint64
ms
,
double
value
)
{
dataMutex
.
lock
();
// Pre- allocate new space
// FIXME Check this for validity
if
(
static_cast
<
quint64
>
(
size
())
<
(
count
+
100
))
{
this
->
ms
.
resize
(
size
()
+
10000
);
this
->
value
.
resize
(
size
()
+
10000
);
}
this
->
ms
[
count
]
=
ms
;
this
->
value
[
count
]
=
value
;
// Qt will automatically use a smart growth strategy: http://doc.qt.io/qt-5/containers.html#growth-strategies
this
->
ms
.
append
(
ms
);
this
->
value
.
append
(
value
);
this
->
lastValue
=
value
;
this
->
mean
=
0
;
//QList<double> medianList = QList<double>();
...
...
src/ui/linechart/LinechartWidget.cc
View file @
16a64ab0
...
...
@@ -361,6 +361,7 @@ void LinechartWidget::appendData(int uasId, const QString& curve, const QString&
timeButton
->
blockSignals
(
false
);
if
(
activePlot
)
activePlot
->
enforceGroundTime
(
true
);
}
lastTimestamp
=
usec
;
}
// Log data
...
...
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