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
8411ba0b
Commit
8411ba0b
authored
8 years ago
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct thread destruction
parent
4423a07e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
APMCompassCal.cc
src/AutoPilotPlugins/APM/APMCompassCal.cc
+6
-2
SensorsComponent.qml
src/AutoPilotPlugins/PX4/SensorsComponent.qml
+2
-0
No files found.
src/AutoPilotPlugins/APM/APMCompassCal.cc
View file @
8411ba0b
...
@@ -579,7 +579,11 @@ APMCompassCal::APMCompassCal(void)
...
@@ -579,7 +579,11 @@ APMCompassCal::APMCompassCal(void)
APMCompassCal
::~
APMCompassCal
()
APMCompassCal
::~
APMCompassCal
()
{
{
if
(
_calWorkerThread
)
{
_calWorkerThread
->
terminate
();
// deleteLater so it happens on correct thread
_calWorkerThread
->
deleteLater
();
}
}
}
void
APMCompassCal
::
setVehicle
(
Vehicle
*
vehicle
)
void
APMCompassCal
::
setVehicle
(
Vehicle
*
vehicle
)
...
@@ -601,7 +605,7 @@ void APMCompassCal::startCalibration(void)
...
@@ -601,7 +605,7 @@ void APMCompassCal::startCalibration(void)
// Simulate a start message
// Simulate a start message
_emitVehicleTextMessage
(
"[cal] calibration started: mag"
);
_emitVehicleTextMessage
(
"[cal] calibration started: mag"
);
_calWorkerThread
=
new
CalWorkerThread
(
_vehicle
,
this
);
_calWorkerThread
=
new
CalWorkerThread
(
_vehicle
);
connect
(
_calWorkerThread
,
&
CalWorkerThread
::
vehicleTextMessage
,
this
,
&
APMCompassCal
::
vehicleTextMessage
);
connect
(
_calWorkerThread
,
&
CalWorkerThread
::
vehicleTextMessage
,
this
,
&
APMCompassCal
::
vehicleTextMessage
);
// Clear the offset parameters so we get raw data
// Clear the offset parameters so we get raw data
...
...
This diff is collapsed.
Click to expand it.
src/AutoPilotPlugins/PX4/SensorsComponent.qml
View file @
8411ba0b
...
@@ -461,6 +461,8 @@ QGCView {
...
@@ -461,6 +461,8 @@ QGCView {
property
real
indicatorWidth
:
(
width
/
3
)
-
(
spacing
*
2
)
property
real
indicatorWidth
:
(
width
/
3
)
-
(
spacing
*
2
)
property
real
indicatorHeight
:
(
height
/
2
)
-
spacing
property
real
indicatorHeight
:
(
height
/
2
)
-
spacing
Component.onCompleted
:
console
.
log
(
"
indicatorWidth
"
,
indicatorWidth
,
"
indicatorHeight
"
,
indicatorHeight
)
VehicleRotationCal
{
VehicleRotationCal
{
width
:
parent
.
indicatorWidth
width
:
parent
.
indicatorWidth
height
:
parent
.
indicatorHeight
height
:
parent
.
indicatorHeight
...
...
This diff is collapsed.
Click to expand it.
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