| optoICC

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
optoICC.registers.icc_registers.InertialMeasurementUnit Class Reference
Inheritance diagram for optoICC.registers.icc_registers.InertialMeasurementUnit:

## Public Member Functions
def | __init__ (self, board=None)
def | get_value (self, channel)
def | get_value_id (self, channel)
def | is_init_done (self)
def | get_accel_x (self)
def | get_accel_y (self)
def | get_accel_z (self)
def | get_gyro_x (self)
def | get_gyro_y (self)
def | get_gyro_z (self)
def | get_accel_resolution (self)
def | get_gyro_resolution (self)
def | get_accel_run (self)
def | get_gyro_run (self)
def | get_dlpf (self)
def | get_init_done (self)
def | set_callback_prescaler (self, prescaler=20)
def | set_accel_resolution (self, resolution=0)
def | set_gyro_resolution (self, resolution=0)
def | set_dlpf (self, value=0)
def | is_init_done (self)
def | init (self)
def | start_accel_readout (self)
def | stop_accel_readout (self)
def | start_gyro_readout (self)
def | stop_gyro_readout (self)
def | get_accel (self)
def | get_gyro (self)

## Static Public Member Functions
def | help ()

## Public Attributes
| sys_id
| accel_run
| accel_x
| accel_y
| accel_z
| gyro_run
| gyro_x
| gyro_y
| gyro_z
| callback_prescaler
| accel_resolution
| gyro_resolution
| dlpf
| init_imu
| init_done
| accel_vec
| gyro_vec
| name

## Detailed Description

    Device Functionality - Inertial Measurement Unit
    System ID: 0x37

    * Inertial Measurement Unit system ID: <b>0x37</b>
    *
    * The inertial measurement unit system provides information about the actual
    * acceleration in X,Y,Z direction of actuator and angular rate around these axis.
    * It also includes the parameter registers for setup of the IMU.
    *
    * ### Register Map:
    *
    *  | Address | Name             | Default Value | Description                                           |  Type  | Access     |
    *  |---------|---------------------|---------------|-------------------------------------------------------|--------|------------|
    *  | 0x3700  | RUN_ACCEL            | false         | Enable/Disable accelerometer readout callback         | boolean| read write |
    *  | 0x3701  | ACCEL_X              | N/A           | Accelerometer value in X direction [m/s/s]            | float  | read only  |
    *  | 0x3702  | ACCEL_Y              | N/A           | Accelerometer value in Y direction [m/s/s]            | float  | read only  |
    *  | 0x3703  | ACCEL_Z              | N/A           | Accelerometer value in Z direction [m/s/s]            | float  | read only  |
    *  | 0x3704  | RUN_GYRO             | false         | Enable/Disable Gyroscope readout callback             | boolean| read write |
    *  | 0x3705  | GYRO_X               | N/A           | Gyroscope value in X direction [deg/s]                | float  | read only  |
    *  | 0x3706  | GYRO_Y               | N/A           | Gyroscope value in Y direction [deg/s]                | float  | read only  |
    *  | 0x3707  | GYRO_Z               | N/A           | Gyroscope value in Z direction [deg/s]                | float  | read only  |
    *  | 0x3708  | CALLBACK_PRESCALER  | 20            | System timer callback prescaler                        | uint16 | read write |
    *  | 0x3709  | ACCEL_RESOLUTION     | 0             | Resolution of accelerometer [0=2g, 1=4g, 2=8g, 3=16g] | uint8_t| read write |
    *  | 0x370A  | GYRO_RESOLUTION     | 0              | Resolution of gyroscope [0=250, 1=500, 2=1000, 3=2000]| uint8_t| read write |
    *  | 0x370B  | DLPF                 | 0             | Digital low pass filter for gyro. and accelerometer   | uint8_t| read write |
    *  | 0x370C  | INIT                 | N/A           | Writes configuration from registers into IMU          | uint8  | write      |
    *  | 0x370D  | INIT_DONE            | false         | If init was successful, then ==true                   | uint8  | read only  |
    *  |---------|---------------------|---------------|-------------------------------------------------------|--------|------------|
    *
    * ### Vector Map:
    *
    * | Address | Name             | Default  | Description                     | Format and value | Access     |
    * |---------|------------------|----------|--------------------------------|------------------|------------|
    * | 0x3700  | ACCEL_VALUES      |   N/A    | {X,Y,Z}, 3 * float (12 bytes)  | float            | read only  |
    * | 0x3701  | GYRO_VALUES       |   N/A    | {X,Y,Z}, 3 * float (12 bytes)  | float            | read only  |
    *
    */

## Constructor & Destructor Documentation

## ◆ __init__()

def optoICC.registers.icc_registers.InertialMeasurementUnit.__init__ | ( |  | self,
|  |  | board = `None`
| ) |  |

## Member Function Documentation

## ◆ get_accel()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_accel | ( |  | self | ) |

## ◆ get_accel_resolution()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_accel_resolution | ( |  | self | ) |

## ◆ get_accel_run()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_accel_run | ( |  | self | ) |

## ◆ get_accel_x()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_accel_x | ( |  | self | ) |

## ◆ get_accel_y()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_accel_y | ( |  | self | ) |

## ◆ get_accel_z()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_accel_z | ( |  | self | ) |

## ◆ get_dlpf()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_dlpf | ( |  | self | ) |

## ◆ get_gyro()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_gyro | ( |  | self | ) |

## ◆ get_gyro_resolution()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_gyro_resolution | ( |  | self | ) |

## ◆ get_gyro_run()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_gyro_run | ( |  | self | ) |

## ◆ get_gyro_x()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_gyro_x | ( |  | self | ) |

## ◆ get_gyro_y()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_gyro_y | ( |  | self | ) |

## ◆ get_gyro_z()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_gyro_z | ( |  | self | ) |

## ◆ get_init_done()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_init_done | ( |  | self | ) |

## ◆ get_value()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_value | ( |  | self,
|  |  | channel
| ) |  |

## ◆ get_value_id()

def optoICC.registers.icc_registers.InertialMeasurementUnit.get_value_id | ( |  | self,
|  |  | channel
| ) |  |

## ◆ help()

def optoICC.registers.icc_registers.InertialMeasurementUnit.help | ( |  | ) |
| static

## ◆ init()

def optoICC.registers.icc_registers.InertialMeasurementUnit.init | ( |  | self | ) |

## ◆ is_init_done() [1/2]

def optoICC.registers.icc_registers.InertialMeasurementUnit.is_init_done | ( |  | self | ) |

## ◆ is_init_done() [2/2]

def optoICC.registers.icc_registers.InertialMeasurementUnit.is_init_done | ( |  | self | ) |

## ◆ set_accel_resolution()

def optoICC.registers.icc_registers.InertialMeasurementUnit.set_accel_resolution | ( |  | self,
|  |  | resolution = `0`
| ) |  |

## ◆ set_callback_prescaler()

def optoICC.registers.icc_registers.InertialMeasurementUnit.set_callback_prescaler | ( |  | self,
|  |  | prescaler = `20`
| ) |  |

## ◆ set_dlpf()

def optoICC.registers.icc_registers.InertialMeasurementUnit.set_dlpf | ( |  | self,
|  |  | value = `0`
| ) |  |

## ◆ set_gyro_resolution()

def optoICC.registers.icc_registers.InertialMeasurementUnit.set_gyro_resolution | ( |  | self,
|  |  | resolution = `0`
| ) |  |

## ◆ start_accel_readout()

def optoICC.registers.icc_registers.InertialMeasurementUnit.start_accel_readout | ( |  | self | ) |

## ◆ start_gyro_readout()

def optoICC.registers.icc_registers.InertialMeasurementUnit.start_gyro_readout | ( |  | self | ) |

## ◆ stop_accel_readout()

def optoICC.registers.icc_registers.InertialMeasurementUnit.stop_accel_readout | ( |  | self | ) |

## ◆ stop_gyro_readout()

def optoICC.registers.icc_registers.InertialMeasurementUnit.stop_gyro_readout | ( |  | self | ) |

## Member Data Documentation

## ◆ accel_resolution

optoICC.registers.icc_registers.InertialMeasurementUnit.accel_resolution

## ◆ accel_run

optoICC.registers.icc_registers.InertialMeasurementUnit.accel_run

## ◆ accel_vec

optoICC.registers.icc_registers.InertialMeasurementUnit.accel_vec

## ◆ accel_x

optoICC.registers.icc_registers.InertialMeasurementUnit.accel_x

## ◆ accel_y

optoICC.registers.icc_registers.InertialMeasurementUnit.accel_y

## ◆ accel_z

optoICC.registers.icc_registers.InertialMeasurementUnit.accel_z

## ◆ callback_prescaler

optoICC.registers.icc_registers.InertialMeasurementUnit.callback_prescaler

## ◆ dlpf

optoICC.registers.icc_registers.InertialMeasurementUnit.dlpf

## ◆ gyro_resolution

optoICC.registers.icc_registers.InertialMeasurementUnit.gyro_resolution

## ◆ gyro_run

optoICC.registers.icc_registers.InertialMeasurementUnit.gyro_run

## ◆ gyro_vec

optoICC.registers.icc_registers.InertialMeasurementUnit.gyro_vec

## ◆ gyro_x

optoICC.registers.icc_registers.InertialMeasurementUnit.gyro_x

## ◆ gyro_y

optoICC.registers.icc_registers.InertialMeasurementUnit.gyro_y

## ◆ gyro_z

optoICC.registers.icc_registers.InertialMeasurementUnit.gyro_z

## ◆ init_done

optoICC.registers.icc_registers.InertialMeasurementUnit.init_done

## ◆ init_imu

optoICC.registers.icc_registers.InertialMeasurementUnit.init_imu

## ◆ name

optoICC.registers.icc_registers.InertialMeasurementUnit.name

## ◆ sys_id

optoICC.registers.icc_registers.InertialMeasurementUnit.sys_id

The documentation for this class was generated from the following file:

- C:/Users/filip.stary/Documents/145-713-00-OptoICC/src/main/python/optoICC/registers/icc_registers.py