Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
derf
multipass
Commits
1f1d47d6
Commit
1f1d47d6
authored
4 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
bme680-max44009-logger: switch to bme680 float api
parent
ec1cc59a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/bme680-max44009-logger/Makefile.inc
+2
-0
2 additions, 0 deletions
src/app/bme680-max44009-logger/Makefile.inc
src/app/bme680-max44009-logger/main.cc
+4
-3
4 additions, 3 deletions
src/app/bme680-max44009-logger/main.cc
with
6 additions
and
3 deletions
src/app/bme680-max44009-logger/Makefile.inc
+
2
−
0
View file @
1f1d47d6
...
...
@@ -9,3 +9,5 @@ ifdef app
override
arch_drivers
+=
,i2c
override
drivers
+=
,bme680,max44009
endif
COMMON_FLAGS
+=
-DBME680_FLOAT_POINT_COMPENSATION
This diff is collapsed.
Click to expand it.
src/app/bme680-max44009-logger/main.cc
+
4
−
3
View file @
1f1d47d6
...
...
@@ -95,9 +95,10 @@ void loop(void)
bme680_status
=
bme680
.
getSensorData
(
&
data
);
}
if
(
bme680_status
==
0
)
{
kout
<<
"BME680 temperature: "
<<
(
float
)
data
.
temperature
/
100
<<
" degC"
<<
endl
;
kout
<<
"BME680 humidity: "
<<
(
float
)
data
.
humidity
/
1000
<<
" %"
<<
endl
;
kout
<<
"BME680 pressure: "
<<
(
float
)
data
.
pressure
/
100
<<
" hPa"
<<
endl
;
bme680
.
amb_temp
=
data
.
temperature
;
kout
<<
"BME680 temperature: "
<<
data
.
temperature
<<
" degC"
<<
endl
;
kout
<<
"BME680 humidity: "
<<
data
.
humidity
<<
" %"
<<
endl
;
kout
<<
"BME680 pressure: "
<<
data
.
pressure
/
100
<<
" hPa"
<<
endl
;
kout
<<
"BME680 gas resistance: "
<<
data
.
gas_resistance
<<
endl
;
}
else
{
kout
<<
"# BME680 error "
<<
bme680_status
<<
endl
;
...
...
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