Main
//{ "Main/Startup(once)"
PLAY ACTION STAND
WAIT
//}
// clear globals and sensors
CLR SENSORS
// Main Loop
WHILE 1 = 1
////////////////////////////////
// ERS-7 sensors
IF Head_ON <> 0 THEN
//{ "Sensor/Head pressed"
PLAY ACTION TURN 180 // Turn Around
WAIT
//}
SET Head_ON 0
ENDIF
IF BackF_ON <> 0 THEN
//{ "Sensor/BackFront pressed"
PLAY ACTION SIT
WAIT
//}
SET BackF_ON 0
ENDIF
IF BackM_ON <> 0 THEN
//{ "Sensor/BackMiddle pressed"
PLAY ACTION LIE
WAIT
//}
SET BackM_ON 0
ENDIF
IF BackR_ON <> 0 THEN
//{ "Sensor/BackRear pressed"
PLAY ACTION STAND
WAIT
//}
SET BackR_ON 0
ENDIF
WEND // end of main loop
Description:
When the front back sensor of AIBO is pressed, AIBO will sit down. When the middle back sensor of AIBO is pressed, AIBO will lie down. When the rear back sensor of AIBO is pressed, AIBO will stand. When the head of AIBO is pressed, AIBO will turn to opposite direction