PiStormsSensor: This class provides functions for configuration, reading, and writing of sensors for use with PiStorms.
More...
PiStormsSensor: This class provides functions for configuration, reading, and writing of sensors for use with PiStorms.
def PiStorms.PiStormsSensor.activateCustomSensorI2C |
( |
|
self | ) |
|
Configures the sensor port for a custom I2C sensor.
- Parameters
-
def PiStorms.PiStormsSensor.ambientLightSensorEV3 |
( |
|
self | ) |
|
Returns the EV3 Color Sensor ambient light value.
- Parameters
-
def PiStorms.PiStormsSensor.analogSensor |
( |
|
self | ) |
|
Returns an analog sensor value 0-1024.
- Parameters
-
def PiStorms.PiStormsSensor.colorSensorBlueNXT |
( |
|
self | ) |
|
Returns the NXT color sensor reflected blue light value.
- Parameters
-
def PiStorms.PiStormsSensor.colorSensorEV3 |
( |
|
self | ) |
|
Returns the EV3 Color Sensor color value.
- Parameters
-
def PiStorms.PiStormsSensor.colorSensorGreenNXT |
( |
|
self | ) |
|
Returns the NXT color sensor reflected green light value.
- Parameters
-
def PiStorms.PiStormsSensor.colorSensorNoneNXT |
( |
|
self | ) |
|
Returns the NXT color sensor ambient light value.
- Parameters
-
def PiStorms.PiStormsSensor.colorSensorNXT |
( |
|
self | ) |
|
Returns the NXT color sensor color value.
- Parameters
-
def PiStorms.PiStormsSensor.colorSensorRedNXT |
( |
|
self | ) |
|
Returns the NXT color sensor reflected red light value.
- Parameters
-
def PiStorms.PiStormsSensor.distanceIREV3 |
( |
|
self | ) |
|
Returns the EV3 Infrared Sensor distance value.
- Parameters
-
def PiStorms.PiStormsSensor.distanceRemoteIREV3 |
( |
|
self, |
|
|
|
channel |
|
) |
| |
Returns the LEGO IR remote distance value.
- Parameters
-
self | The object pointer. |
channel | The channel of your remote control or other IR device. |
def PiStorms.PiStormsSensor.distanceUSEV3 |
( |
|
self | ) |
|
Returns the EV3 Ultrasonic Sensor distance value in millimeters.
- Parameters
-
def PiStorms.PiStormsSensor.distanceUSEV3in |
( |
|
self | ) |
|
Returns the EV3 Ultrasonic Sensor distance value in 'inches times 10' i.e.
for an obstacle at 3 inches, you will get a reading of 30
- Parameters
-
def PiStorms.PiStormsSensor.gyroAngleEV3 |
( |
|
self | ) |
|
Returns the EV3 Gyro Sensor angle value.
- Parameters
-
def PiStorms.PiStormsSensor.gyroRateEV3 |
( |
|
self | ) |
|
Returns the EV3 Gyro Sensor rate value.
- Parameters
-
def PiStorms.PiStormsSensor.headingIREV3 |
( |
|
self, |
|
|
|
channel |
|
) |
| |
Returns the EV3 Infrared Sensor heading value.
- Parameters
-
self | The object pointer. |
channel | The channel of your remote control or other IR device. |
def PiStorms.PiStormsSensor.isTouchedEV3 |
( |
|
self | ) |
|
Returns the EV3 Touch Sensor touch value.
- Parameters
-
def PiStorms.PiStormsSensor.isTouchedNXT |
( |
|
self | ) |
|
Returns the NXT Touch Sensor touch value.
- Parameters
-
def PiStorms.PiStormsSensor.lightSensorNXT |
( |
|
self, |
|
|
|
active = True |
|
) |
| |
Returns the NXT light sensor value.
- Parameters
-
self | The object pointer. |
active | The mode of the nxt light sensor. (True = active/reflected | False = nonactive/ambient) |
def PiStorms.PiStormsSensor.numTouchesEV3 |
( |
|
self | ) |
|
Returns the EV3 Touch Sensor touch count.
- Parameters
-
def PiStorms.PiStormsSensor.numTouchesNXT |
( |
|
self | ) |
|
Returns the NXT Touch Sensor touch count.
- Parameters
-
def PiStorms.PiStormsSensor.presenceUSEV3 |
( |
|
self | ) |
|
Returns the EV3 Ultrasonic Sensor presence boolean value.
- Parameters
-
def PiStorms.PiStormsSensor.reflectedLightSensorEV3 |
( |
|
self | ) |
|
Returns the EV3 Color Sensor reflected light value.
- Parameters
-
def PiStorms.PiStormsSensor.remoteLeft |
( |
|
self, |
|
|
|
channel |
|
) |
| |
Returns the left button status of the LEGO IR remote (1 = Forward, 0 = Not pressed, -1 = Backwards)
- Parameters
-
self | The object pointer. |
channel | The channel of your remote control or other IR device. |
def PiStorms.PiStormsSensor.remoteRight |
( |
|
self, |
|
|
|
channel |
|
) |
| |
Returns the right button status of the LEGO IR remote (1 = Forward, 0 = Not pressed, -1 = Backwards)
- Parameters
-
self | The object pointer. |
channel | The channel of your remote control or other IR device. |
def PiStorms.PiStormsSensor.resetTouchesEV3 |
( |
|
self | ) |
|
Resets the EV3 Touch Sensor touch count to zero.
- Parameters
-
def PiStorms.PiStormsSensor.resetTouchesNXT |
( |
|
self | ) |
|
Resets the NXT Touch Sensor touch count to zero.
- Parameters
-
def PiStorms.PiStormsSensor.SumoEyes |
( |
|
self, |
|
|
|
long = True |
|
) |
| |
Returns the mindsensors.com's SumoEyes value (0 = None, 1 = Front, 2 = Left, 3 = Right)
- Parameters
-
self | The object pointer. |
long | The mode of the SumoEyes sensor. (True = long range | False = short range) |
The documentation for this class was generated from the following file: