LINELEADER: this class provides functions for Lineleader from mindsensors.com for read and write operations.
More...
LINELEADER: this class provides functions for Lineleader from mindsensors.com for read and write operations.
def mindsensors.LINELEADER.__init__ |
( |
|
self, |
|
|
|
ll_address = LL_ADDRESS |
|
) |
| |
Initialize the class with the i2c address of your Lineleader.
- Parameters
-
self | The object pointer. |
ll_address | Address of your LightSensorArray. |
def mindsensors.LINELEADER.average |
( |
|
self | ) |
|
Read the average weighted value of the current line from position from the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.Black_Cal |
( |
|
self | ) |
|
Calibrates the black value for the LightSensorArray.
- Parameters
-
def mindsensors.LINELEADER.command |
( |
|
self, |
|
|
|
cmd |
|
) |
| |
Writes a value to the command register.
- Parameters
-
self | The object pointer. |
cmd | Value to write to the command register. |
def mindsensors.LINELEADER.getKD |
( |
|
self | ) |
|
Read the Kd value from the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.getKDfactor |
( |
|
self | ) |
|
Read the Kd factor value to the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.getKI |
( |
|
self | ) |
|
Read the Ki value from the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.getKIfactor |
( |
|
self | ) |
|
Read the Ki factor value to the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.getKP |
( |
|
self | ) |
|
Read the Kp value from the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.getKPfactor |
( |
|
self | ) |
|
Read the Kp factor value to the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.getSetPoint |
( |
|
self | ) |
|
Reads the eight(8) calibrated light sensor values of the LightSensorArray.
- Parameters
-
def mindsensors.LINELEADER.ReadRaw_Calibrated |
( |
|
self | ) |
|
Reads the eight(8) calibrated light sensor values of the LightSensorArray.
- Parameters
-
def mindsensors.LINELEADER.ReadRaw_Uncalibrated |
( |
|
self | ) |
|
Reads the eight(8) uncalibrated light sensor values of the LightSensorArray.
- Parameters
-
def mindsensors.LINELEADER.result |
( |
|
self | ) |
|
Reads the result of all 8 light sensors form the LineLeader as 1 byte (1 bit for each sensor)
- Parameters
-
def mindsensors.LINELEADER.setKD |
( |
|
self | ) |
|
Write the Kd value to the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.setKDfactor |
( |
|
self | ) |
|
Write the Kd factor value to the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.setKI |
( |
|
self | ) |
|
Write the Ki value to the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.setKIfactor |
( |
|
self | ) |
|
Write the Ki factor value to the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.setKP |
( |
|
self | ) |
|
Write the Kp value to the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.setKPfactor |
( |
|
self | ) |
|
Write the Kp factor value to the Lineleader.
- Parameters
-
def mindsensors.LINELEADER.setSetPoint |
( |
|
self | ) |
|
Reads the eight(8) calibrated light sensor values of the LightSensorArray.
- Parameters
-
def mindsensors.LINELEADER.Sleep |
( |
|
self | ) |
|
Puts to sleep, or turns off the LEDs of the LightSensorArray.
- Parameters
-
def mindsensors.LINELEADER.steering |
( |
|
self | ) |
|
Read the steering value from the Lineleader (add or subtract this value to the motor speed)
- Parameters
-
def mindsensors.LINELEADER.Wakeup |
( |
|
self | ) |
|
Wakes up or turns on the LEDs of the LightSensorArray.
- Parameters
-
def mindsensors.LINELEADER.White_Cal |
( |
|
self | ) |
|
Calibrates the white value for the LightSensorArray.
- Parameters
-
int mindsensors.LINELEADER.LL_AVERAGE = 0x43 |
|
static |
Average Register.
Will return a byte value
int mindsensors.LINELEADER.LL_RESULT = 0x44 |
|
static |
Steering Register.
Will return a byte value
int mindsensors.LINELEADER.LL_STEERING = 0x42 |
|
static |
Steering Register.
Will return a signed byte value
The documentation for this class was generated from the following file:
- PiStorms/sys/mindsensors.py