Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
motion_compensation.h File Reference

Advance a position along ground velocity by a bounded elapsed interval. More...

#include <math.h>
#include <stdint.h>
Include dependency graph for motion_compensation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int compensate_ground_position (int32_t *latitude, int32_t *longitude, double speed, double course, double delay)
 Correct latitude/longitude for horizontal platform motion during capture.

Detailed Description

Advance a position along ground velocity by a bounded elapsed interval.

The helper uses WGS-84 local curvature radii rather than a fixed meters-per-degree approximation, which keeps the correction meaningful over USHER's valid operating latitudes while retaining a small, allocation-free calculation.

Definition in file motion_compensation.h.

Function Documentation

◆ compensate_ground_position()

int compensate_ground_position ( int32_t * latitude,
int32_t * longitude,
double speed,
double course,
double delay )
inlinestatic

Correct latitude/longitude for horizontal platform motion during capture.

Parameters
latitudeIn/out latitude in $10^{-7}$ degrees.
longitudeIn/out longitude in $10^{-7}$ degrees.
speedGround speed in m/s.
courseGround-track angle in radians, clockwise from north.
delayCapture latency in seconds.
Returns
1 when corrected coordinates were stored, 0 when inputs were unsafe.

Conservative limits reject implausible telemetry and polar geometry, where longitude correction becomes ill-conditioned. Longitude is normalized after the local tangent-plane displacement to preserve the wire representation's range.

Definition at line 42 of file motion_compensation.h.