SumoEyes: this class provides PiStorms specific interface for the SumoEyes obstacle detection sensor from mindsensors.com.
More...
|
list | SE_None = [0, "None"] |
|
dictionary | SE_Values |
|
int | PS_S1EV_Ready = 0x70 |
|
int | PS_S2EV_Ready = 0xA4 |
|
| LONG_RANGE = True |
|
| SHORT_RANGE = False |
|
SumoEyes: this class provides PiStorms specific interface for the SumoEyes obstacle detection sensor from mindsensors.com.
def MsDevices.SumoEyes.__init__ |
( |
|
self, |
|
|
|
port |
|
) |
| |
Initialize the class with the PiStorms bank.
- Parameters
-
self | The object pointer. |
port | The PiStorms bank. |
def MsDevices.SumoEyes.detectObstactleZone |
( |
|
self, |
|
|
|
verbose = False |
|
) |
| |
Check the zones for an obstacle.
- Parameters
-
self | The object pointer. |
verbose | Outputs the string value of the direction if set to True |
def MsDevices.SumoEyes.isNear |
( |
|
self, |
|
|
|
reference, |
|
|
|
value, |
|
|
|
tolerance = 40 |
|
) |
| |
Checks if the sensor reading is within a tolerance to find the zone.
- Parameters
-
self | The object pointer. |
reference | The reference value. |
value | The sensor measurement. |
tolerance | The tolerance. |
def MsDevices.SumoEyes.readSensorValue |
( |
|
self | ) |
|
Reads the value from the SumoEyes sensor.
- Parameters
-
def MsDevices.SumoEyes.setRange |
( |
|
self, |
|
|
|
range = LONG_RANGE |
|
) |
| |
Sets the sensor range to LONG_RANGE or SHORT_RANGE setting.
- Parameters
-
self | The object LONG_RANGE. |
range | The range (long is default) |
dictionary MsDevices.SumoEyes.SE_Values |
|
static |
The documentation for this class was generated from the following file:
- PiStorms/sys/MsDevices.py