Tag Info

New answers tagged

0

pragma config(Sensor, S3, lightSensor, sensorLightActive) //!!Code automatically generated by 'ROBOTC' configuration wizard !!// task main() { wait1Msec(50); // The program waits 50 milliseconds to initialize the light sensor. while(true) // Infinite loop { ...


0

In pseudocode: LoopBlock (forever) MoveBlock (B and C motors, 75% power, forward, forever) -- unclear here, probably want to head for brighter light -- instead, just wait for 80% If LightSensorBlock (port 3, greater than, threshold 80%) Then MoveBlock (B and C motors, stop) WaitForBlock (time, 10 seconds) End If End ...


4

Would this solve your problem? Depending on the direction of the input, only one axle will turn.



Top 50 recent answers are included