|
|
|
|
@ -94,22 +94,19 @@ namespace RaspiControl { |
|
|
|
|
{new StateTransition(ProcessState.MoveManual, Command.JoystickRight), ProcessState.MoveManualR }, |
|
|
|
|
{new StateTransition(ProcessState.MoveManual, Command.JoystickCenter), ProcessState.StopManual }, |
|
|
|
|
{new StateTransition(ProcessState.MoveManual, Command.autoMode), ProcessState.Auto }, |
|
|
|
|
{new StateTransition(ProcessState.MoveManual, Command.finished), ProcessState.Final }, |
|
|
|
|
|
|
|
|
|
{new StateTransition(ProcessState.StopManual,Command.JoystickUp), ProcessState.ResumeMoveManual }, |
|
|
|
|
{new StateTransition(ProcessState.StopManual,Command.JoystickDown), ProcessState.ResumeMoveManual }, |
|
|
|
|
{new StateTransition(ProcessState.StopManual,Command.JoystickLeft), ProcessState.ResumeMoveManual }, |
|
|
|
|
{new StateTransition(ProcessState.StopManual,Command.JoystickRight), ProcessState.ResumeMoveManual }, |
|
|
|
|
{new StateTransition(ProcessState.StopManual, Command.autoMode), ProcessState.Auto }, |
|
|
|
|
{new StateTransition(ProcessState.StopManual, Command.finished), ProcessState.Final }, |
|
|
|
|
|
|
|
|
|
{new StateTransition(ProcessState.ResumeMoveManual, Command.none),ProcessState.MoveManual }, |
|
|
|
|
{new StateTransition(ProcessState.ResumeMoveManual, Command.autoMode), ProcessState.Auto }, |
|
|
|
|
|
|
|
|
|
{new StateTransition(ProcessState.Auto, Command.finished), ProcessState.Final }, |
|
|
|
|
//{new StateTransition(ProcessState.Auto, Command.JoystickUp), ProcessState.StartMoveManual }, |
|
|
|
|
//{new StateTransition(ProcessState.Auto, Command.JoystickDown), ProcessState.StartMoveManual }, |
|
|
|
|
//{new StateTransition(ProcessState.Auto, Command.JoystickLeft), ProcessState.StartMoveManual }, |
|
|
|
|
//{new StateTransition(ProcessState.Auto, Command.JoystickRight), ProcessState.StartMoveManual }, |
|
|
|
|
//{new StateTransition(ProcessState.Auto, Command.JoystickCenter), ProcessState.StartMoveManual }, |
|
|
|
|
{new StateTransition(ProcessState.Auto, Command.failure), ProcessState.Error }, |
|
|
|
|
{new StateTransition(ProcessState.Auto, Command.manualMode), ProcessState.ResumeMoveManual }, |
|
|
|
|
|
|
|
|
|
|