Last active
July 1, 2020 19:24
-
-
Save tcoopman/9f914a8cfa212967bf7e27be012317f4 to your computer and use it in GitHub Desktop.
Pump Control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pump Control | |
Pump off* | |
time after 1400 -> Pump on | |
Pump on | |
time after 1900 -> Pump off | |
start control loop -> Control loop | |
Control loop* | |
roof temperature higher -> Valve opened | |
roof temperature lower -> Valve closed | |
Valve closed | |
start control loop timer -> control loop timer | |
Valve opened | |
start control loop timer -> control loop timer | |
control loop timer | |
timer rang -> Control loop | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment