IEvsInertialSensorsEvents

Interface for receiving calibrated sensors data (Accelerometer, Magnetometer, Gyroscope)

To receive the sensors, for supported systems, you should:

  1. Enable the sensor via IEvsSensorsService.enableAccelerometer, IEvsSensorsService.enableMagnetometer, IEvsSensorsService.enableGyro

  2. Enable sensor fusion IEvsSensorsService.enableSensorsFusion

  3. Register the sensor data callback via IEvsSensorsService.registerInertialSensorsEvents

Functions

Link copied to clipboard
abstract fun onSensor(sensorType: SensorType, timestampNs: Long, x: Float, y: Float, z: Float)

Sensor calibrated data callback