Skip to content

Instantly share code, notes, and snippets.

@ddefb
Last active Mar 7, 2019
Embed
What would you like to do?
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