#include "asuro.h"

int main(void)
{
Init()
while(1){
if (PollSwitch()=0)
{
MotorDir(FWD,FWD);
MotorSpeed(120,120);
StatusLED(GREEN);
FontLED(ON);
BackLED(ON,ON);
}
}

while (0){
if (PollSwitch()=1)
{
MotorDir(BREAK,RWD);
MotorSpeed(0,120);
StatusLED(RED);
}

if
(PollSwitch()=2)
{
MotorDir(BREAK,RWD);
MotorSpeed(0,120);
StatusLED(RED);
}

if
(PollSwitch()=4)
{
MotorDir(BREAK,RWD);
MotorSpeed(0,120);
StatusLED(RED);
}

if
(PollSwitch()=
{
MotorDir(RWD,BREAK);
MotorSpeed(120,0);
StatusLED(RED);
}

if
(PollSwitch()=16)
{
MotorDir(RWD,BREAK);
MotorSpeed(120,0);
StatusLED(RED);
}

if
(PollSwitch()=32)
{
MotorDir(RWD,BREAK);
MotorSpeed(120,0);
StatusLED(RED);
}


return 0;
}

Das hier wär des Programm.
Und zudem was du nicht vestanden hast; er soll ununterbrochen in einem schuhkarton fahren. Wie z.B.: ein Roboterstaubsauger der i.wo anstößt&dann umdreht und weiter fährt