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
7c143cc6
Unverified
Commit
7c143cc6
authored
Mar 27, 2020
by
Don Gagne
Committed by
GitHub
Mar 27, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8583 from alexeylysenko/unreachable_code
Removed unreachable code
parents
dd27f8ea
282949d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
APMCompassCal.cc
src/AutoPilotPlugins/APM/APMCompassCal.cc
+4
-14
No files found.
src/AutoPilotPlugins/APM/APMCompassCal.cc
View file @
7c143cc6
...
...
@@ -200,21 +200,11 @@ CalWorkerThread::calibrate_return CalWorkerThread::mag_calibration_worker(detect
worker_data
->
calibration_counter_total
[
cur_mag
]
++
;
}
// Keep calibration of all mags in lockstep
if
(
rejected
)
{
qCDebug
(
APMCompassCalLog
)
<<
QStringLiteral
(
"Point rejected"
);
calibration_counter_side
++
;
// Reset counts, since one of the mags rejected the measurement
for
(
size_t
cur_mag
=
0
;
cur_mag
<
max_mags
;
cur_mag
++
)
{
worker_data
->
calibration_counter_total
[
cur_mag
]
=
prev_count
[
cur_mag
];
}
}
else
{
calibration_counter_side
++
;
// Progress indicator for side
_emitVehicleTextMessage
(
QStringLiteral
(
"[cal] %1 side calibration: progress <%2>"
).
arg
(
detect_orientation_str
(
orientation
)).
arg
(
progress_percentage
(
worker_data
)
+
(
unsigned
)((
100
/
calibration_sides
)
*
((
float
)
calibration_counter_side
/
(
float
)
worker_data
->
calibration_points_perside
))));
}
// Progress indicator for side
_emitVehicleTextMessage
(
QStringLiteral
(
"[cal] %1 side calibration: progress <%2>"
).
arg
(
detect_orientation_str
(
orientation
)).
arg
(
progress_percentage
(
worker_data
)
+
(
unsigned
)((
100
/
calibration_sides
)
*
((
float
)
calibration_counter_side
/
(
float
)
worker_data
->
calibration_points_perside
))));
usleep
(
loop_interval_usecs
);
}
...
...
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