diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-05 17:01:42 -0800 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-05 17:01:42 -0800 |
commit | de14227b6d569f4b4dc9b8e5e7cec5ddd811b68b (patch) | |
tree | d610b23e3ddf434cdd3add2838aac1d64d569211 | |
parent | be9c7cd92384c7044c65a83ebc846c15963ff9ed (diff) |
-rw-r--r-- | core.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -24,7 +24,9 @@ enum RobotCorrection_t { MOVE_STRAIGHT = 0, MOVE_RIGHT = 1, MOVE_LEFT = 2 }; -// use a global +// use a global context structure +// to avoid coupling our routines +// to the global state struct RobotContext_t { enum RobotState_t state; enum RobotState_t prevState; |