aboutsummaryrefslogtreecommitdiff
path: root/fsm.go
diff options
context:
space:
mode:
Diffstat (limited to 'fsm.go')
-rw-r--r--fsm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fsm.go b/fsm.go
index dfe04a5..9565d5b 100644
--- a/fsm.go
+++ b/fsm.go
@@ -53,7 +53,7 @@ func (f *FSM) Start() {
}
func (f *FSM) initalState() stateFn {
- f.commands <- &Command{Look: 90}
+ f.commands <- &Command{Look: 0}
return f.readDistance
}
@@ -72,6 +72,6 @@ func (f *FSM) moveAhead() stateFn {
}
func (f *FSM) stop() stateFn {
- f.commands <- &Command{Stop: true}
+ f.commands <- &Command{}
return f.readDistance
}