Skip to content

Instantly share code, notes, and snippets.

@tsaiDavid
Last active November 28, 2018 19:35
Show Gist options
  • Save tsaiDavid/4c7bd6247b819c845fc529f6c47a4846 to your computer and use it in GitHub Desktop.
Save tsaiDavid/4c7bd6247b819c845fc529f6c47a4846 to your computer and use it in GitHub Desktop.
Preflight
Preflight
arm -> Armed
Armed
disarm -> Preflight
takeoff -> Inflight
Inflight
En Route*
hold -> Holding
land -> Landing
Holding
resume -> En Route
Landing
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