Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
bd9d0581
Commit
bd9d0581
authored
Jan 06, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small adjustment of variable
parent
146c1cfb
Pipeline
#764
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
common.cpp
arduino/hev_prototype_v1/src/common.cpp
+1
-1
No files found.
arduino/hev_prototype_v1/src/common.cpp
View file @
bd9d0581
...
...
@@ -224,7 +224,7 @@ float adcToMillibarDPFloat(float adc, float offset)
float
PCB_Gain
=
2.
;
// real voltage is two times higher thant the measured in the PCB (there is a voltage divider)
float
ADC_to_mVoltage_Gain
=
0.788
;
// this is the measured gain
float
ADC_offset
=
162.
;
// this is the measured offset
float
Aout
=
PCB_Gain
*
(
ADC_to_mVoltage_Gain
*
adc
+
162
)
;
float
Aout
=
PCB_Gain
*
(
ADC_to_mVoltage_Gain
*
adc
+
ADC_offset
)
;
float
Vdd
=
5000
;
float
PaTombar
=
0.01
;
...
...
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