AbsoluteIMU: this class provides PiStorms specific interface for all models of the AbsoluteIMU from mindsensors.com for detailed member functions for this class, please refer to mindsensors.ABSIMU.
More...
AbsoluteIMU: this class provides PiStorms specific interface for all models of the AbsoluteIMU from mindsensors.com for detailed member functions for this class, please refer to mindsensors.ABSIMU.
def MsDevices.AbsoluteIMU.__init__ |
( |
|
self, |
|
|
|
port, |
|
|
|
address = ABSIMU_ADDRESS |
|
) |
| |
Initialize the class with the i2c address of your AbsoluteIMU.
- Parameters
-
def MsDevices.AbsoluteIMU.accel_16G |
( |
|
self | ) |
|
Sets accelerometer sensitivity to 16G.
- Parameters
-
def MsDevices.AbsoluteIMU.accel_2G |
( |
|
self | ) |
|
Sets accelerometer sensitivity to 2G.
- Parameters
-
def MsDevices.AbsoluteIMU.accel_4G |
( |
|
self | ) |
|
Sets accelerometer sensitivity to 4G.
- Parameters
-
def MsDevices.AbsoluteIMU.accel_8G |
( |
|
self | ) |
|
Sets accelerometer sensitivity to 8G.
- Parameters
-
def MsDevices.AbsoluteIMU.command |
( |
|
self, |
|
|
|
command |
|
) |
| |
Writes a value to the command register.
- Parameters
-
self | The object pointer. |
command | Value to write to the command register. |
def MsDevices.AbsoluteIMU.get_accelall |
( |
|
self | ) |
|
Reads the accelerometer values.
- Parameters
-
def MsDevices.AbsoluteIMU.get_accelx |
( |
|
self | ) |
|
Reads acceleromter value along the x-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_accely |
( |
|
self | ) |
|
Reads acceleromter value along the y-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_accelz |
( |
|
self | ) |
|
Reads acceleromter value along the z-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_gyroall |
( |
|
self | ) |
|
Reads the tilt values.
- Parameters
-
def MsDevices.AbsoluteIMU.get_gyrox |
( |
|
self | ) |
|
Reads gyroscope value along the x-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_gyroy |
( |
|
self | ) |
|
Reads gyroscope value along the y-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_gyroz |
( |
|
self | ) |
|
Reads gyroscope value along the z-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_heading |
( |
|
self | ) |
|
Reads compass heading.
- Parameters
-
def MsDevices.AbsoluteIMU.get_magall |
( |
|
self | ) |
|
Reads the magnetometer values.
- Parameters
-
def MsDevices.AbsoluteIMU.get_magx |
( |
|
self | ) |
|
Reads magnetometer value along the x-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_magy |
( |
|
self | ) |
|
Reads magnetometer value along the y-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_magz |
( |
|
self | ) |
|
Reads magnetometer value along the z-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_tiltall |
( |
|
self | ) |
|
Reads the tilt values.
- Parameters
-
def MsDevices.AbsoluteIMU.get_tiltx |
( |
|
self | ) |
|
Reads the tilt value along the x-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_tilty |
( |
|
self | ) |
|
Reads the tilt value along the y-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.get_tiltz |
( |
|
self | ) |
|
Reads the tilt value along the z-axis.
- Parameters
-
def MsDevices.AbsoluteIMU.start_cmpscal |
( |
|
self | ) |
|
Starts the compass calibration process.
- Parameters
-
def MsDevices.AbsoluteIMU.stop_cmpscal |
( |
|
self | ) |
|
Stops the compass calibration process.
- Parameters
-
int MsDevices.AbsoluteIMU.ACCEL_X = 0x45 |
|
static |
X-Axis Accelerometer Register.
Will return a signed integer reading (-1050 - 1050)
int MsDevices.AbsoluteIMU.ACCEL_Y = 0x47 |
|
static |
Y-Axis Accelerometer Register.
Will return a signed integer reading (-1050 - 1050)
int MsDevices.AbsoluteIMU.ACCEL_Z = 0x49 |
|
static |
Z-Axis Accelerometer Register.
Will return a signed integer reading (-1050 - 1050)
int MsDevices.AbsoluteIMU.CMPS = 0x4B |
|
static |
Compass Heading Register.
Will return an unsigned integer reading (0 - 360)
int MsDevices.AbsoluteIMU.GYRO_X = 0x53 |
|
static |
X-Axis Gyroscope Register.
Will return a signed integer reading
int MsDevices.AbsoluteIMU.GYRO_Y = 0x55 |
|
static |
Y-Axis Gyroscope Register.
Will return a signed integer reading
int MsDevices.AbsoluteIMU.GYRO_Z = 0x57 |
|
static |
Z-Axis Gyroscope Register.
Will return a signed integer reading
int MsDevices.AbsoluteIMU.MAG_X = 0x4D |
|
static |
X-Axis Magnetometer Register.
Will return a signed integer reading
int MsDevices.AbsoluteIMU.MAG_Y = 0x4F |
|
static |
Y-Axis Magnetometer Register.
Will return a signed integer reading
int MsDevices.AbsoluteIMU.MAG_Z = 0x51 |
|
static |
Z-Axis Magnetometer Register.
Will return a signed integer reading
int MsDevices.AbsoluteIMU.TILT_X = 0x42 |
|
static |
X-Axis Tilt Register.
Will return a signed integer reading
int MsDevices.AbsoluteIMU.TILT_Y = 0x43 |
|
static |
Y-Axis Tilt Register.
Will return a signed integer reading
int MsDevices.AbsoluteIMU.TILT_Z = 0x44 |
|
static |
Z-Axis Tilt Register.
Will return a signed integer reading
The documentation for this class was generated from the following file:
- PiStorms/sys/MsDevices.py