NXTCAM: this class provides functions for models of the NXTCAM and PixyAdapter from mindsensors.com for read and write operations.
More...
NXTCAM: this class provides functions for models of the NXTCAM and PixyAdapter from mindsensors.com for read and write operations.
def mindsensors.NXTCAM.__init__ |
( |
|
self, |
|
|
|
nxtcam_address = NXTCAM_ADDRESS |
|
) |
| |
Initialize the class with the i2c address of your NXTCAM.
- Parameters
-
self | The object pointer. |
nxtcam_address | Address of your AngleSensor. |
def mindsensors.NXTCAM.command |
( |
|
self, |
|
|
|
command |
|
) |
| |
Writes a value to the command register.
- Parameters
-
self | The object pointer. |
command | Value to write to the command register. |
def mindsensors.NXTCAM.firmware |
( |
|
self | ) |
|
Get the firmware version of the NXTCAM.
- Parameters
-
def mindsensors.NXTCAM.getBlobs |
( |
|
self, |
|
|
|
blobNum = 1 |
|
) |
| |
Reads data of the tracked object(s)
- Parameters
-
self | The object pointer. |
blobNum | The number of the tracked object. |
def mindsensors.NXTCAM.getColorMap |
( |
|
self | ) |
|
Get the color map from NXTCAM.
- Parameters
-
def mindsensors.NXTCAM.getNumberObjects |
( |
|
self | ) |
|
Read the number of objects detected (0-8)
- Parameters
-
def mindsensors.NXTCAM.illuminationOff |
( |
|
self | ) |
|
Turn off illumination.
- Parameters
-
def mindsensors.NXTCAM.illuminationOn |
( |
|
self | ) |
|
Turn on illumination.
- Parameters
-
def mindsensors.NXTCAM.ping |
( |
|
self | ) |
|
def mindsensors.NXTCAM.readImageRegisters |
( |
|
self | ) |
|
Read to image sensor registers.
- Parameters
-
def mindsensors.NXTCAM.reset |
( |
|
self | ) |
|
def mindsensors.NXTCAM.sendColorMap |
( |
|
self | ) |
|
Send ColorMap to NXTCAM.
- Parameters
-
def mindsensors.NXTCAM.sortColor |
( |
|
self | ) |
|
Sort tracked objects by color.
- Parameters
-
def mindsensors.NXTCAM.sortNone |
( |
|
self | ) |
|
Do not sort tracked objects.
- Parameters
-
def mindsensors.NXTCAM.sortSize |
( |
|
self | ) |
|
Sort the detected objects by size.
- Parameters
-
def mindsensors.NXTCAM.startTracking |
( |
|
self | ) |
|
Enable tracking.
- Parameters
-
def mindsensors.NXTCAM.stopTracking |
( |
|
self | ) |
|
Disable tracking.
- Parameters
-
def mindsensors.NXTCAM.trackLine |
( |
|
self | ) |
|
Track detected colors as lines.
- Parameters
-
def mindsensors.NXTCAM.trackObject |
( |
|
self | ) |
|
Track detected colors as objects.
- Parameters
-
def mindsensors.NXTCAM.writeImageRegisters |
( |
|
self | ) |
|
Write to image sensor registers.
- Parameters
-
int mindsensors.NXTCAM.Color = 0x43 |
|
static |
First Register Containing Tracked Object Data.
This is to be read in an array
int mindsensors.NXTCAM.NumberObjects = 0x42 |
|
static |
Number of Tracked Ojects Register.
Will return a byte (0-8)
The documentation for this class was generated from the following file:
- PiStorms/sys/mindsensors.py