newbie help : subsumption
i'm new to pic basic and i'm trying to setup a simple subsumption architecture...
can anyone help with this code :
start:
go_command = command_none
stop_command = empty
if go_command <> command_none then motor_output = go_command
if stop_command <> command_none then motor_output = stop_command
select case motor_output
case stop_command
portb = %00001100
case go_command
portb = %00000011
end select
goto start
basicly i'm just trying to select the correct state based on when go/stop_command(s) are not command_none.
I can't seem to select the second case, go_command, it always just assigns 00001100 to port b :(
can anyone help
thanks