Monado OpenXR Runtime
android_sensors.c File Reference

Android sensors driver code. More...

#include "android_sensors.h"
#include "util/u_debug.h"
#include "util/u_device.h"
#include "util/u_var.h"
#include "util/u_distortion_mesh.h"
#include "android/android_globals.h"
#include "android/android_custom_surface.h"
#include <xrt/xrt_config_android.h>
Include dependency graph for android_sensors.c:

Macros

#define POLL_RATE_USEC   (1000L / 60) * 1000
 

Functions

static struct android_deviceandroid_device (struct xrt_device *xdev)
 
static int android_sensor_callback (int fd, int events, void *data)
 
static int32_t android_get_sensor_poll_rate (const struct android_device *d)
 
static void * android_run_thread (void *ptr)
 
static void android_device_destroy (struct xrt_device *xdev)
 
static void android_device_get_tracked_pose (struct xrt_device *xdev, enum xrt_input_name name, int64_t at_timestamp_ns, struct xrt_space_relation *out_relation)
 
static bool android_device_compute_distortion (struct xrt_device *xdev, uint32_t view, float u, float v, struct xrt_uv_triplet *result)
 
struct android_deviceandroid_device_create ()
 

Detailed Description

Android sensors driver code.

Author
Lubosz Sarnecki lubos.nosp@m.z.sa.nosp@m.rneck.nosp@m.i@co.nosp@m.llabo.nosp@m.ra.c.nosp@m.om

Function Documentation

◆ android_device_get_tracked_pose()

static void android_device_get_tracked_pose ( struct xrt_device xdev,
enum xrt_input_name  name,
int64_t  at_timestamp_ns,
struct xrt_space_relation out_relation 
)
static
Todo:
assuming that orientation is actually currently tracked.