Telemetry

Plain-C telemetry and map structs shared across all SDK language bridges.

#include <telemetry.h>

Structs

struct RogueTelemetry

Plain-C telemetry snapshot for a vehicle.

Note:

This struct is append-only. Never reorder or remove fields; only add new fields at the end.

FieldTypeDescription
x float odometry east (m)
y float odometry north (m)
z float odometry up (m)
roll float radians
pitch float radians
yaw float radians, 0 = forward at power-on
vx float m/s
vy float m/s
vz float m/s
battery_percent int 0–100, -1 = unavailable
valid int 1 = fresh data, 0 = stale/unavailable
is_recording int 1 = camera recording active
latitude double WGS84 degrees, 0 = unavailable
longitude double WGS84 degrees, 0 = unavailable
gps_satellites int number of GPS satellites in use
rc_signal int RC signal quality 0-100
flight_time_sec int seconds since motors started
flight_mode int autopilot-specific mode number
battery_voltage float volts (pack voltage); 0 = unavailable
battery_current float amps (pack current); 0 = unavailable or idle
armed int 1 = motors armed (flying or ready to fly), 0 = disarmed
lidar_ray_count int 0 = no rangefinder data
lidar_angles_deg float[ROGUE_LIDAR_MAX_RAYS] angle of each ray (degrees)
lidar_distances_m float[ROGUE_LIDAR_MAX_RAYS] distance at each ray (meters)
lidar_best_angle float angle with farthest clear point
lidar_best_distance float farthest clear distance (m)
lidar_worst_angle float angle with nearest obstacle
lidar_worst_distance float nearest obstacle distance (m)
qx float quaternion x
qy float quaternion y
qz float quaternion z
qw float quaternion w (identity = 1)
rangefinder_m float downward rangefinder distance (m); <=0 = unavailable
0 int gps_fix_type; /* GPS fix quality:
yaw_rate float rad/s, + = CW (nose-right) yaw; 0 = unavailable
a onboard build predates these fields — render as "unknown", never as
sensors_present unsigned int autopilot-specific bitmask of onboard sensors fitted
sensors_health unsigned int same bit layout as sensors_present; 1 = that sensor is healthy
vibe_x float accel vibration m/s/s (<15 ok, >30 bad)
vibe_y float
vibe_z float
vibe_clipping unsigned int cumulative clipping events; must be 0
ekf_flags unsigned int EKF flags (0x8000 = GPS glitch)
gps_signal_level int

Constants

NameValueDescription
ROGUE_LIDAR_MAX_RAYS 12 Maximum number of rangefinder scan rays carried in RogueTelemetry.