x=US, y=LS
Code: Select all
SetSensorLowspeed(S1);
Wait(8);
x=SensorUS(S1);
Wait(8);
SetSensorLight(S1);
y=SensorRaw(S1);
SetSensorLowspeed(S1);
Wait(8);
Code: Select all
SetSensorLowspeed(S1);
Wait(8);
x=SensorUS(S1);
Wait(8);
SetSensorLight(S1);
y=SensorRaw(S1);
SetSensorLowspeed(S1);
Wait(8);