Monado OpenXR Runtime
|
A single PlayStation Move Controller. More...
Data Fields | |
struct xrt_device | base |
struct os_hid_device * | hid |
struct xrt_tracked_psmv * | ball |
struct os_thread_helper | oth |
struct { | |
int64_t resend_time | |
struct xrt_colour_rgb_u8 led | |
uint8_t rumble | |
} | wants |
What should be set. More... | |
struct { | |
struct xrt_colour_rgb_u8 led | |
uint8_t rumble | |
} | state |
What is currently set on the device. More... | |
struct { | |
union { | |
struct psmv_parsed_calibration_zcm1 zcm1 | |
struct psmv_parsed_calibration_zcm2 zcm2 | |
} | |
struct m_imu_pre_filter prefilter | |
} | calibration |
struct { | |
struct os_mutex lock | |
Lock for last and fusion. More... | |
struct psmv_parsed_input last | |
Last sensor read. More... | |
struct { | |
struct xrt_quat rot | |
struct xrt_vec3 rotvec | |
struct imu_fusion * fusion | |
struct { | |
struct xrt_vec3 accel | |
struct xrt_vec3 gyro | |
} variance | |
} fusion | |
}; | |
struct { | |
struct xrt_vec3 accel | |
Last adjusted accelerator value. More... | |
struct xrt_vec3 gyro | |
Last adjusted gyro value. More... | |
} | read |
uint16_t | pid |
bool | print_spew |
bool | print_debug |
struct { | |
bool control | |
bool calibration | |
bool last_frame | |
bool fusion | |
} | gui |
A single PlayStation Move Controller.
A note about coordinate system. If you stand the controller in front of you so that the ball is pointing upward, buttons towards you. Then think of the ball as a head that is looking away from you. The buttons then are is it's back, the trigger the front.
Translated to axis that means the ball is on the Y+ axis, the buttons on the Z+ axis, the trigger on the Z- axis, the USB port on the Y- axis, the start button on the X+ axis, select button on the X- axis.
struct { ... } |
struct xrt_vec3 psmv_device::accel |
Last adjusted accelerator value.
struct xrt_tracked_psmv* psmv_device::ball |
struct xrt_device psmv_device::base |
struct { ... } psmv_device::calibration |
bool psmv_device::calibration |
bool psmv_device::control |
struct imu_fusion* psmv_device::fusion |
struct { ... } psmv_device::fusion |
bool psmv_device::fusion |
struct { ... } psmv_device::gui |
struct xrt_vec3 psmv_device::gyro |
Last adjusted gyro value.
struct os_hid_device* psmv_device::hid |
struct psmv_parsed_input psmv_device::last |
Last sensor read.
bool psmv_device::last_frame |
struct xrt_colour_rgb_u8 psmv_device::led |
struct os_mutex psmv_device::lock |
Lock for last and fusion.
struct os_thread_helper psmv_device::oth |
uint16_t psmv_device::pid |
struct m_imu_pre_filter psmv_device::prefilter |
bool psmv_device::print_debug |
bool psmv_device::print_spew |
struct { ... } psmv_device::read |
int64_t psmv_device::resend_time |
struct xrt_quat psmv_device::rot |
struct xrt_vec3 psmv_device::rotvec |
uint8_t psmv_device::rumble |
struct { ... } psmv_device::state |
What is currently set on the device.
struct { ... } psmv_device::variance |
struct { ... } psmv_device::wants |
What should be set.
struct psmv_parsed_calibration_zcm1 psmv_device::zcm1 |
struct psmv_parsed_calibration_zcm2 psmv_device::zcm2 |