Module: MatrixCreator::Imu
- Defined in:
- lib/matrix_creator/imu.rb
Overview
Module: IMU
Communicate with the IMU driver
Constant Summary collapse
- IMU_CONFIG =
Configuration values for the IMU driver
MatrixCreator.settings[:devices][:imu]
- BASE_PORT =
Base port to send data to IMU driver
IMU_CONFIG[:port]
Class Method Summary collapse
-
.detect(options = {}, &block) ⇒ Array
Detects and returns information from the IMU driver.
-
.detect_once ⇒ Hash
Detects one response from the IMU driver and returns its value.
Class Method Details
.detect(options = {}, &block) ⇒ Array
Detects and returns information from the IMU driver
35 36 37 |
# File 'lib/matrix_creator/imu.rb', line 35 def self.detect( = {}, &block) MatrixCreator::DriverBase.detect(BASE_PORT, MatrixMalos::Imu, , block) end |
.detect_once ⇒ Hash
Detects one response from the IMU driver and returns its value
44 45 46 |
# File 'lib/matrix_creator/imu.rb', line 44 def self.detect_once detect(max_resp: 1).first end |