Skip to content

Commit

Permalink
automations over controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jul 18, 2024
1 parent 17ec565 commit 43b9e10
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 18 deletions.
6 changes: 3 additions & 3 deletions 02_stirring_and_temperature_with_aliases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ common:
hours_elapsed: 0.0
- type: stop
hours_elapsed: 10.0
temperature_control:
temperature_automation:
actions:
- type: stop
hours_elapsed: 10.0
Expand All @@ -22,7 +22,7 @@ pioreactors:
worker1:
label: hot
jobs:
temperature_control:
temperature_automation:
actions:
- type: start
hours_elapsed: 0.0
Expand All @@ -32,7 +32,7 @@ pioreactors:
worker2:
label: cold
jobs:
temperature_control:
temperature_automation:
actions:
- type: start
hours_elapsed: 0.0
Expand Down
6 changes: 2 additions & 4 deletions 04_updating_temperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ common:
hours_elapsed: 0.0
options:
target_rpm: 500.0
temperature_control:
temperature_automation:
actions:
- type: start # this starts the temperature_automation thermostat, so we don't need to start it, but we can ping it later.
- type: start # this starts the temperature_automation thermostat
hours_elapsed: 0.0
options:
automation_name: thermostat
target_temperature: 30
temperature_automation: # pinging thermostat
actions:
- type: update
hours_elapsed: 2.0
options:
Expand Down
4 changes: 1 addition & 3 deletions 07_custom_chemostat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ metadata:

common:
jobs:
dosing_control:
dosing_automation:
actions:
- type: start
hours_elapsed: 0.0
options:
automation_name: chemostat
duration: 30
volume: 0.75
dosing_automation:
actions:
- type: update
hours_elapsed: 24
options:
Expand Down
4 changes: 2 additions & 2 deletions 10_temperature_variation_experiment_with_dosing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ common:
actions:
- type: start
hours_elapsed: 0.0
dosing_control:
dosing_automation:
actions:
- type: start
hours_elapsed: 0.0
options:
automation_name: chemostat
volume: 1.0
duration: 20
temperature_control:
temperature_automation:
actions:
- type: start
hours_elapsed: 0.0
Expand Down
2 changes: 1 addition & 1 deletion 11_night_day_cycle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ common:
actions:
- type: start
hours_elapsed: 0.0
led_control:
led_automation:
actions:
- type: start
hours_elapsed: 0.0
Expand Down
4 changes: 2 additions & 2 deletions 30_start_chemostat_after_threshold_reached.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pioreactors:
hours_elapsed: 0.0
options:
target_rpm: 650.0
temperature_control:
temperature_automation:
actions:
- type: start
hours_elapsed: 0.0
Expand All @@ -28,7 +28,7 @@ pioreactors:
actions:
- type: start
hours_elapsed: 0.0
dosing_control:
dosing_automation:
actions:
- type: repeat
hours_elapsed: 0.08 # start after 5m
Expand Down
4 changes: 1 addition & 3 deletions 31_repeated_temperature_cycle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ metadata:

common:
jobs:
temperature_control:
temperature_automation:
actions:
- type: start
hours_elapsed: 0.0
options:
automation_name: thermostat
target_temperature: 28
temperature_automation:
actions:
- type: repeat
hours_elapsed: 6.0
repeat_every_hours: 48
Expand Down
26 changes: 26 additions & 0 deletions 56_start_chemostat_after_stirring_starts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
experiment_profile_name: start_chemostat_after_stirring_starts
metadata:
author: Your Name
description: Start chemostat when stirring starts

common:
jobs:
stirring:
actions:
- type: start
hours_elapsed: 0.002
dosing_automation:
actions:
- type: when
condition: ${{::stirring:$state == ready}}
hours_elapsed: 0
actions:
- type: start
hours_elapsed: 0
options:
automation_name: chemostat
volume: 0.63
duration: 9



0 comments on commit 43b9e10

Please sign in to comment.