Monado OpenXR Runtime
Loading...
Searching...
No Matches
t_led_sync_sample Struct Reference

A sample read out from the driver, to pass to the device in question. More...

#include </builds/monado/monado/src/xrt/tracking/constellation/t_led_sync_refinement.h>

Collaboration diagram for t_led_sync_sample:

Data Fields

union { 
 
   time_duration_ns   device_host_latency_ns 
 The latency offset from the device timestamps to the host. More...
 
   time_duration_ns   host_device_clock_offset_ns 
 The clock offset from the host timestamp to the device. More...
 
} timestamp 
 
enum t_led_sync_sample_timestamp_mode timestamp_mode
 
double clock_skew
 Clock skew (device vs host, in ns per ns) and its host-time epoch.
 
timepoint_ns clock_epoch_ns
 
double cycle_period_ns
 The LED cycle period in device ns, already trimmed for the skew. 0 lets the driver use its own estimate.
 
time_duration_ns fudge_offset_ns
 The latency offset to apply to fudge the blink to line up as best as possible with the exposure.
 
time_duration_ns blink_duration_ns
 The duration to make the LEDs blink for, in nanoseconds.
 
struct t_led_sync_sample_pssense_data pssense
 
enum t_led_sync_sample_pssense_mode pssense_mode
 

Detailed Description

A sample read out from the driver, to pass to the device in question.

Field Documentation

◆ blink_duration_ns

time_duration_ns t_led_sync_sample::blink_duration_ns

The duration to make the LEDs blink for, in nanoseconds.

◆ clock_skew

double t_led_sync_sample::clock_skew

Clock skew (device vs host, in ns per ns) and its host-time epoch.

Only used in HOST_DEVICE_CLOCK_OFFSET mode: device_ts = host_ts + offset + skew * (host_ts - epoch).

◆ cycle_period_ns

double t_led_sync_sample::cycle_period_ns

The LED cycle period in device ns, already trimmed for the skew. 0 lets the driver use its own estimate.

◆ device_host_latency_ns

time_duration_ns t_led_sync_sample::device_host_latency_ns

The latency offset from the device timestamps to the host.

◆ fudge_offset_ns

time_duration_ns t_led_sync_sample::fudge_offset_ns

The latency offset to apply to fudge the blink to line up as best as possible with the exposure.

◆ host_device_clock_offset_ns

time_duration_ns t_led_sync_sample::host_device_clock_offset_ns

The clock offset from the host timestamp to the device.

Referenced by bg_model_stale().


The documentation for this struct was generated from the following file: