execute method

  1. @override
String execute()
override

Implementation

@override
String execute() {
  int _direction = 2;
  switch (direction) {
    case MissionPadDetectionDirection.forward:
      _direction = 1;
      break;
    case MissionPadDetectionDirection.downward:
      _direction = 0;
      break;

    case MissionPadDetectionDirection.both:
    default:
      _direction = 2;
      break;
  }

  return "mdirection ${_direction}";
}