Skip to main content

ResQ.Core

TelemetryPacket Class

Represents a complete telemetry packet from a drone.
public record TelemetryPacket : System.IEquatable<ResQ.Core.TelemetryPacket>
Inheritance System.Object → TelemetryPacket Implements System.IEquatable<TelemetryPacket>

Example

var telemetry = new TelemetryPacket
{
    DroneId = "drn-001",
    SequenceNumber = 12345,
    Position = new Location(37.7749, -122.4194, 100.0),
    Velocity = new Velocity(10.0, 5.0, -1.0),
    Status = DroneStatus.InFlight,
    BatteryPercent = 75.5f,
    Detections = new List<Detection>()
};

Remarks

This record contains comprehensive telemetry data from a drone including position, velocity, status, battery levels, sensor health, and mission progress. It is used for real-time monitoring and logging.
Properties
BatteryPercentBattery level as percentage (0-100).
BatteryVoltageBattery voltage in volts.
CameraOkTrue if camera is functioning normally.
CurrentMissionIdID of the current mission, if any.
DetectionsList of AI detections from this telemetry packet.
DroneIdUnique identifier for the drone.
GpsOkTrue if GPS is functioning normally.
ImuOkTrue if IMU is functioning normally.
MissionProgressPercentMission completion percentage (0-100).
PositionCurrent geographic position of the drone.
SequenceNumberSequence number for ordering telemetry packets.
StatusCurrent operational status.
SwarmIdOptional swarm identifier if the drone is part of a swarm.
ThermalOkTrue if thermal sensor is functioning normally.
TimestampUTC timestamp when the telemetry was recorded.
VelocityCurrent velocity vector in NED frame.