From 34c4c1a7145c8c224392ca36f70225bf00b418fd Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 11 Dec 2017 23:04:52 +0100 Subject: ... --- fsm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fsm.go') 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 } -- cgit v1.2.3