Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
0a8677b3
Commit
0a8677b3
authored
10 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
AP_Baro: fixed build after rebase with all_healthy()
parent
557f4df7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AP_Baro/AP_Baro.cpp
+4
-4
4 additions, 4 deletions
libraries/AP_Baro/AP_Baro.cpp
with
4 additions
and
4 deletions
libraries/AP_Baro/AP_Baro.cpp
+
4
−
4
View file @
0a8677b3
...
...
@@ -101,20 +101,20 @@ void AP_Baro::calibrate()
for
(
uint8_t
c
=
0
;
c
<
num_samples
;
c
++
)
{
uint32_t
tstart
=
hal
.
scheduler
->
millis
();
bool
all_healthy
=
false
;
bool
all_
sensors_
healthy
=
false
;
do
{
update
();
if
(
hal
.
scheduler
->
millis
()
-
tstart
>
500
)
{
hal
.
scheduler
->
panic
(
PSTR
(
"PANIC: AP_Baro::read unsuccessful "
"for more than 500ms in AP_Baro::calibrate [3]
\r\n
"
));
}
all_healthy
=
true
;
all_
sensors_
healthy
=
true
;
for
(
uint8_t
i
=
0
;
i
<
_num_sensors
;
i
++
)
{
if
(
!
healthy
(
i
))
{
all_healthy
=
false
;
all_
sensors_
healthy
=
false
;
}
}
}
while
(
!
all_healthy
);
}
while
(
!
all_
sensors_
healthy
);
for
(
uint8_t
i
=
0
;
i
<
_num_sensors
;
i
++
)
{
sum_pressure
[
i
]
+=
sensors
[
i
].
pressure
;
sum_temperature
[
i
]
+=
sensors
[
i
].
temperature
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment