Loading...
Searching...
No Matches
pose_log.h
Go to the documentation of this file.
30 union usher_clock_request_union token; /**< Request token joining this pose to one clock exchange. */
31 struct clock_interval sample_time; /**< Conservative monotonic interval covering the FC sample. */
53 * @return 1 when queued, 0 when intentionally dropped due to contention/capacity, or -1 when invalid. */
Bounded mapping between flight-controller microseconds and USHER monotonic time.
struct pose_log_stats pose_log_status(void)
Return a synchronized snapshot of logging health and loss counters.
Definition pose_log.c:365
int pose_log_record(const uint8_t *payload, size_t length, uint64_t receive_monotonic_us)
Validate and enqueue a raw pose payload without clock mapping evidence.
Definition pose_log.c:296
int pose_log_record_clocked(const uint8_t *payload, size_t length, uint64_t receive_monotonic_us, const struct pose_clock_evidence *evidence)
Validate and enqueue a pose payload with optional mapped timing provenance.
Definition pose_log.c:307
int pose_log_start(const char *directory)
Start a durable asynchronous CSV session, or disable logging when directory is empty.
Definition pose_log.c:197
int pose_log_stop(void)
Flush queued records, join the writer, and close the CSV file.
Definition pose_log.c:375
Inclusive USHER monotonic-time bounds for a mapped controller timestamp.
Definition clock_alignment.h:41
Optional token-bound evidence mapping a controller pose interval to MORA time.
Definition pose_log.h:29
Snapshot counters for accepted, flushed, dropped, and rejected pose records.
Definition pose_log.h:40