2005-04-19 19:53:18 +00:00
|
|
|
{
|
2008-08-03 15:44:57 +00:00
|
|
|
GLOBAL =
|
|
|
|
{
|
2010-11-13 20:10:05 +00:00
|
|
|
ENTER = ("setSpeedFactorTo: 1.0", "setStateTo: HEAD_FOR_PLANET");
|
|
|
|
};
|
|
|
|
"HEAD_FOR_PLANET" =
|
|
|
|
{
|
|
|
|
ENTER = (setCourseToPlanet, checkCourseToDestination);
|
2012-04-13 07:43:38 +00:00
|
|
|
"NO_PLANET_FOUND" = ("setStateTo: MOVE_AWAY");
|
|
|
|
"WAYPOINT_SET" = ("setStateTo: GO_TO_WAYPOINT");
|
2010-11-13 20:10:05 +00:00
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
2012-04-13 07:43:38 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: APPROACH");
|
|
|
|
"APPROACHING_SURFACE" = ("setStateTo: LANDING");
|
|
|
|
UPDATE = (checkCourseToDestination, "pauseAI: 10.0");
|
2010-11-13 20:10:05 +00:00
|
|
|
};
|
|
|
|
"MOVE_AWAY" =
|
|
|
|
{
|
|
|
|
ENTER = (setDestinationToCurrentLocation, "setDesiredRangeTo: 7000.0", checkCourseToDestination);
|
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setAITo: dumbAI.plist");
|
|
|
|
UPDATE = (checkCourseToDestination, "pauseAI: 10.0");
|
2008-08-03 15:44:57 +00:00
|
|
|
};
|
2012-04-13 07:43:38 +00:00
|
|
|
"GO_TO_WAYPOINT" =
|
2011-12-02 17:18:30 +00:00
|
|
|
{
|
2012-04-13 07:43:38 +00:00
|
|
|
ENTER = ("setSpeedFactorTo: 1.0", setDesiredRangeForWaypoint, checkCourseToDestination);
|
|
|
|
"WAYPOINT_SET" = (setDesiredRangeForWaypoint, checkCourseToDestination);
|
|
|
|
"APPROACHING_SURFACE" = ("setStateTo: LANDING");
|
|
|
|
"COURSE_OK" = ("setSpeedFactorTo: 0.8", performFlyToRangeFromDestination);
|
2011-12-02 17:18:30 +00:00
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: HEAD_FOR_PLANET");
|
2012-12-29 10:19:33 +00:00
|
|
|
RESTARTED = ("setSpeedFactorTo: 1.0", "setStateTo: HEAD_FOR_PLANET");
|
2012-04-13 07:43:38 +00:00
|
|
|
UPDATE = ("pauseAI: 10.0");
|
2011-12-02 17:18:30 +00:00
|
|
|
};
|
2012-04-13 07:43:38 +00:00
|
|
|
"APPROACH" = {
|
|
|
|
ENTER = (setCourseToPlanet, performFlyToRangeFromDestination);
|
2012-12-29 10:19:33 +00:00
|
|
|
RESTARTED = (setCourseToPlanet, performFlyToRangeFromDestination);
|
2012-04-13 07:43:38 +00:00
|
|
|
"APPROACHING_SURFACE" = ("setStateTo: LANDING");
|
|
|
|
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: LANDING");
|
|
|
|
};
|
|
|
|
"LANDING" = {
|
|
|
|
ENTER = (performLandOnPlanet);
|
|
|
|
"NO_PLANET_NEARBY" = ("setStateTo: APPROACH");
|
|
|
|
};
|
2008-08-03 15:44:57 +00:00
|
|
|
}
|