
from auto_number import AutoNumber


class STATE(AutoNumber):
    Start = ()
    Following_waypoint = ()
    Avoiding_obstacle = ()
    Driving_toward_cone = ()
    Driving_away_from_cone = ()
    Success = ()
    Failure = ()
    End = ()


class TRANSITION(AutoNumber):
    obstacle_seen = ()
    near_cone = ()
    obstacle_cleared = ()
    touched_cone = ()
    passed_cone = ()
    segment_timeout = ()
    touched_last_cone = ()
    passed_last_cone = ()
    course_timeout = ()





from auto_number import AutoNumber


class STATE(AutoNumber):
    Start = ()
    Following_waypoint = ()
    Avoiding_obstacle = ()
    Driving_toward_cone = ()
    Driving_away_from_cone = ()
    Success = ()
    Failure = ()
    End = ()


class TRANSITION(AutoNumber):
    obstacle_seen = ()
    near_cone = ()
    obstacle_cleared = ()
    touched_cone = ()
    passed_cone = ()
    segment_timeout = ()
    touched_last_cone = ()
    passed_last_cone = ()
    course_timeout = ()
    cleared_cone = ()




Add new state for driving away from cone
Add new state for driving away from cone
  
  from auto_number import AutoNumber
  
  
  class STATE(AutoNumber):
      Start = ()
      Following_waypoint = ()
      Avoiding_obstacle = ()
      Driving_toward_cone = ()
      Driving_away_from_cone = ()
      Success = ()
      Failure = ()
      End = ()
  
  
  class TRANSITION(AutoNumber):
      obstacle_seen = ()
      near_cone = ()
      obstacle_cleared = ()
      touched_cone = ()
      passed_cone = ()
      segment_timeout = ()
      touched_last_cone = ()
      passed_last_cone = ()
      course_timeout = ()
+     cleared_cone = ()
  
  
  
  
Add new state for driving away from cone
## Code Before:

from auto_number import AutoNumber


class STATE(AutoNumber):
    Start = ()
    Following_waypoint = ()
    Avoiding_obstacle = ()
    Driving_toward_cone = ()
    Driving_away_from_cone = ()
    Success = ()
    Failure = ()
    End = ()


class TRANSITION(AutoNumber):
    obstacle_seen = ()
    near_cone = ()
    obstacle_cleared = ()
    touched_cone = ()
    passed_cone = ()
    segment_timeout = ()
    touched_last_cone = ()
    passed_last_cone = ()
    course_timeout = ()




## Instruction:
Add new state for driving away from cone
## Code After:

from auto_number import AutoNumber


class STATE(AutoNumber):
    Start = ()
    Following_waypoint = ()
    Avoiding_obstacle = ()
    Driving_toward_cone = ()
    Driving_away_from_cone = ()
    Success = ()
    Failure = ()
    End = ()


class TRANSITION(AutoNumber):
    obstacle_seen = ()
    near_cone = ()
    obstacle_cleared = ()
    touched_cone = ()
    passed_cone = ()
    segment_timeout = ()
    touched_last_cone = ()
    passed_last_cone = ()
    course_timeout = ()
    cleared_cone = ()



