summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core.c b/core.c
index 9a5aab3..d671d0c 100644
--- a/core.c
+++ b/core.c
@@ -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;