com.oculusvr.capi.SensorData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jovr Show documentation
Show all versions of jovr Show documentation
JNA bindings for the Oculus SDK C API
package com.oculusvr.capi;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
/**
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class SensorData extends Structure {
/** Acceleration reading in m/s^2. */
public OvrVector3f Accelerometer;
/** Rotation rate in rad/s. */
public OvrVector3f Gyro;
/** Magnetic field in Gauss. */
public OvrVector3f Magnetometer;
/** Temperature of the sensor in degrees Celsius. */
public float Temperature;
/** Time when the reported IMU reading took place, in seconds. */
public float TimeInSeconds;
public SensorData() {
super();
}
@Override
protected List > getFieldOrder() {
return Arrays.asList("Accelerometer", "Gyro", "Magnetometer", "Temperature", "TimeInSeconds");
}
public SensorData(OvrVector3f Accelerometer, OvrVector3f Gyro, OvrVector3f Magnetometer, float Temperature, float TimeInSeconds) {
super();
this.Accelerometer = Accelerometer;
this.Gyro = Gyro;
this.Magnetometer = Magnetometer;
this.Temperature = Temperature;
this.TimeInSeconds = TimeInSeconds;
}
public SensorData(Pointer peer) {
super(peer);
}
public static class ByReference extends SensorData implements Structure.ByReference {
};
public static class ByValue extends SensorData implements Structure.ByValue {
};
}