Last active
March 7, 2019 12:34
-
-
Save ddefb/9f5c474df683ea3f4f1a6e75585535b0 to your computer and use it in GitHub Desktop.
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
node motor(c: bool) returns (mode, velocity: int) | |
let | |
automaton | |
state FORWARD do | |
mode = 1; | |
velocity = 255; | |
unless not c then BACKWARD | |
state BACKWARD do | |
mode = 2; | |
velocity = 255; | |
unless c then FORWARD | |
end | |
tel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment