Monado OpenXR Runtime
rift_s_hmd.c File Reference

Driver code for Oculus Rift S headsets. More...

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <assert.h>
#include "math/m_api.h"
#include "math/m_vec3.h"
#include "os/os_time.h"
#include "util/u_device.h"
#include "util/u_trace_marker.h"
#include "util/u_var.h"
#include "xrt/xrt_device.h"
#include "rift_s_hmd.h"
Include dependency graph for rift_s_hmd.c:

Macros

#define DEG_TO_RAD(D)   ((D)*M_PI / 180.)
 

Functions

static xrt_result_t rift_s_get_tracked_pose (struct xrt_device *xdev, enum xrt_input_name name, int64_t at_timestamp_ns, struct xrt_space_relation *out_relation)
 
void rift_s_hmd_handle_report (struct rift_s_hmd *hmd, timepoint_ns local_ts, rift_s_hmd_report_t *report)
 
static bool rift_s_compute_distortion (struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *result)
 
static void rift_s_hmd_destroy (struct xrt_device *xdev)
 
struct rift_s_hmdrift_s_hmd_create (struct rift_s_system *sys, const unsigned char *hmd_serial_no, struct rift_s_hmd_config *config)
 
void rift_s_hmd_set_proximity (struct rift_s_hmd *hmd, bool prox_sensor)
 

Detailed Description

Driver code for Oculus Rift S headsets.

Implementation for the HMD communication, calibration and IMU integration.

Ported from OpenHMD

Author
Jan Schmidt jan@c.nosp@m.entr.nosp@m.icula.nosp@m.r.co.nosp@m.m