Advance a position along ground velocity by a bounded elapsed interval. More...
#include <math.h>#include <stdint.h>

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()
|
inlinestatic |
Correct latitude/longitude for horizontal platform motion during capture.
- Parameters
-
latitude In/out latitude in $10^{-7}$ degrees. longitude In/out longitude in $10^{-7}$ degrees. speed Ground speed in m/s. course Ground-track angle in radians, clockwise from north. delay Capture 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.