Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climate Lab Test Stand
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
Container 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
MSK-SW
Low-Level Radio Frequency
Climate Lab
Climate Lab Test Stand
Commits
2ac06cc7
Commit
2ac06cc7
authored
2 years ago
by
Martin Killenberg
Browse files
Options
Downloads
Patches
Plain Diff
fix humidity simulation start point
parent
510efe85
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Python_script/VNA_dummy.py
+4
-4
4 additions, 4 deletions
Python_script/VNA_dummy.py
Python_script/climate_chamber_dummy.py
+2
-2
2 additions, 2 deletions
Python_script/climate_chamber_dummy.py
Python_script/shared_simulated_state.py
+1
-1
1 addition, 1 deletion
Python_script/shared_simulated_state.py
with
7 additions
and
7 deletions
Python_script/VNA_dummy.py
+
4
−
4
View file @
2ac06cc7
...
@@ -33,8 +33,8 @@ class VnaDummy:
...
@@ -33,8 +33,8 @@ class VnaDummy:
self
.
reference_magnitude
=
0.7
# at reference temp and reference hum
self
.
reference_magnitude
=
0.7
# at reference temp and reference hum
self
.
reference_phase
=
70
# at reference temp and reference hum
self
.
reference_phase
=
70
# at reference temp and reference hum
self
.
reference_temp
=
25
self
.
reference_temp
=
25
self
.
magnitude_slope
=
0.02
self
.
magnitude_slope
_temp
=
0.02
self
.
phase_slope
=
0.1
self
.
phase_slope
_temp
=
0.1
self
.
communication_delay
=
0.2
self
.
communication_delay
=
0.2
def
run_simulation
(
self
):
def
run_simulation
(
self
):
...
@@ -44,7 +44,7 @@ class VnaDummy:
...
@@ -44,7 +44,7 @@ class VnaDummy:
def
simulate_magnitude
(
self
):
def
simulate_magnitude
(
self
):
target_magnitude_difference_temp
=
-
1.
*
self
.
magnitude_slope
*
\
target_magnitude_difference_temp
=
-
1.
*
self
.
magnitude_slope
_temp
*
\
(
self
.
simulated_state
.
simulated_temperature
-
self
.
reference_temp
)
(
self
.
simulated_state
.
simulated_temperature
-
self
.
reference_temp
)
delta_magnitude
=
target_magnitude_difference_temp
-
self
.
simulated_magnitude_difference_temp
delta_magnitude
=
target_magnitude_difference_temp
-
self
.
simulated_magnitude_difference_temp
...
@@ -56,7 +56,7 @@ class VnaDummy:
...
@@ -56,7 +56,7 @@ class VnaDummy:
def
simulate_phase
(
self
):
def
simulate_phase
(
self
):
target_phase_difference_temp
=
self
.
phase_slope
*
\
target_phase_difference_temp
=
self
.
phase_slope
_temp
*
\
(
self
.
simulated_state
.
simulated_temperature
-
self
.
reference_temp
)
(
self
.
simulated_state
.
simulated_temperature
-
self
.
reference_temp
)
delta_phase
=
target_phase_difference_temp
-
self
.
simulated_phase_difference_temp
delta_phase
=
target_phase_difference_temp
-
self
.
simulated_phase_difference_temp
...
...
This diff is collapsed.
Click to expand it.
Python_script/climate_chamber_dummy.py
+
2
−
2
View file @
2ac06cc7
...
@@ -24,8 +24,8 @@ class ClimateChamberDummy:
...
@@ -24,8 +24,8 @@ class ClimateChamberDummy:
self
.
simulated_state
=
shared_simulated_state
.
get_simulated_state
()
self
.
simulated_state
=
shared_simulated_state
.
get_simulated_state
()
self
.
last_simulation_time
=
self
.
simulated_state
.
simulated_time
self
.
last_simulation_time
=
self
.
simulated_state
.
simulated_time
self
.
simulated_mode
=
'
OFF
'
self
.
simulated_mode
=
'
OFF
'
self
.
target_temperature
=
25
self
.
target_temperature
=
self
.
simulated_state
.
simulated_temperature
self
.
target_humidity
=
35
self
.
target_humidity
=
self
.
simulated_state
.
simulated_humidity
self
.
temperature_slope
=
0.1
# 0.1 degrees/second
self
.
temperature_slope
=
0.1
# 0.1 degrees/second
self
.
humidity_slope
=
0.5
# degrees/second
self
.
humidity_slope
=
0.5
# degrees/second
self
.
communication_delay
=
0.3
self
.
communication_delay
=
0.3
...
...
This diff is collapsed.
Click to expand it.
Python_script/shared_simulated_state.py
+
1
−
1
View file @
2ac06cc7
...
@@ -13,4 +13,4 @@ class SimulatedState:
...
@@ -13,4 +13,4 @@ class SimulatedState:
self
.
simulated_time
=
0
self
.
simulated_time
=
0
self
.
simulated_temperature
=
25
self
.
simulated_temperature
=
25
self
.
simulated_humidity
=
3
0
self
.
simulated_humidity
=
3
5
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