Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michal Rybka
openCanSat-2.0-library
Commits
3bc5de16
Commit
3bc5de16
authored
Sep 26, 2018
by
Markéta Jedličková
Browse files
Init altitude and humidity added
parent
d88e8125
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OcsStorage.cpp
View file @
3bc5de16
...
...
@@ -34,6 +34,8 @@ void OcsStorage::Update(message income, uint8_t screenNum)
ocsDesign
.
drawPress
(
income
.
pressure
);
ocsDesign
.
drawMinPress
(
income
.
pressure
);
ocsDesign
.
drawMaxPress
(
income
.
pressure
);
ocsDesign
.
drawAltitude
(
income
.
altitude
);
ocsDesign
.
drawHumidity
(
income
.
humidity
);
minData
.
temperature
=
income
.
temperature
;
maxData
.
temperature
=
income
.
temperature
;
minData
.
pressure
=
income
.
pressure
;
...
...
@@ -48,13 +50,17 @@ void OcsStorage::Update(message income, uint8_t screenNum)
ocsDesign
.
drawPress
(
income
.
pressure
);
ocsDesign
.
drawMinPress
(
minData
.
pressure
);
ocsDesign
.
drawMaxPress
(
maxData
.
pressure
);
ocsDesign
.
drawAltitude
(
income
.
altitude
);
ocsDesign
.
drawHumidity
(
income
.
humidity
);
isTransition
=
false
;
}
checkTemperature
(
income
.
temperature
);
checkPressure
(
income
.
pressure
);
checkAltitude
(
income
.
altitude
);
checkHumidity
(
income
.
humidity_bme280
);
else
{
checkTemperature
(
income
.
temperature
);
checkPressure
(
income
.
pressure
);
checkAltitude
(
income
.
altitude
);
checkHumidity
(
income
.
humidity_bme280
);
}
ocsDesign
.
drawMessageId
(
income
.
messageId
);
}
else
if
(
screenNum
==
0
)
...
...
Write
Preview
Supports
Markdown
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