command | return | description |
motor; getRotationCount; portNr | value | Returns the rotation of a motor |
motor; resetRotationCount; portNr; relative | --- | Resets the specified motor's rotation count |
motor; setForward; portNr; power | --- | Sets a motor to turn forward at a specified power |
motor; setReverse; portNr; power | --- | Sets a motor to turn backward at a specified power |
motor; stop; portNr; brake | --- | Tells a motor to stop turning |
motor; breakOn; portNr | --- | Tells a motor to turn the brake on |
motor; breakOff; portNr | --- | Tells a motor to turn the brake off |
motor; goTo; portNr; power; tacho; brake | --- | Tells a motor to go to a certian angle and then stop |
command | return | description |
sensor; setTouch; portNr | --- | Sets a sensor in a specified port to a touch sensor |
sensor; setSound; portNr | --- | Sets a sensor in a specified port to a sound sensor |
sensor; setLight; portNr, active | --- | Sets a sensor in a specified port to a light sensor |
sensor; setSonar; portNr | --- | Sets a sensor in a specified port to a sonar sensor |
sensor; setRaw; portNr | --- | Sets a sensor to return a raw value |
sensor; getValue; portNr | value | Retrieves the value of a sensor |
sensor; lsGetStatus; portNr | value | Gets the status of the lowspeed port |
sensor; getSonarValue; portNr | value | Retrieves the value for sonar sensors |
sensor; setSonarOff; portNr | --- | ells the sonar sensor to stop sending pulses |
sensor; setSonarSingleShot; portNr | --- | Tells the sonar sensor to only send a pulse when you ask it what it's value is |
sensor; setSonarContinuous; portNr | --- | Tells the sonar sensor to continuously send pulses |
sensor; setSonarContinuousInterval; portNr, interval | --- | Sets the interval at which the sonar sensor sends a pulse |