Telemetry topic
Subscribing to the telemetry topic a JSON with drone telemetry will be received every 0.5s
TOPIC telemetry
Data reeived:
{
lat: <latitude>,
lon: <longitude>,
heading: <heading in degree>,
drone: <drone_id>,
flightId: <flight_id>,
battery: <remaining_battery>, //percentage
timestamp: <timestamp in ms>,
altitudeAbs: <Absolute altitude amsl in m>,
altitudeRel: <Relative altitude in m>,
inAir: <Drone in air>, //boolean
mode: <Flight mode>,
state: <Drone state>,
missionDistance: <Mission distance in m>, //Distane flown for the mission
missionTime: <Mission time>,
airspeed: <Aispeed in m/s>,
groundSpeed: <Groundspeed in m/s>,
pitch: <pitch in degrees>,
roll: <roll in degrees>,
yaw: <yaw in degrees>,
rocd: <Rocd in m/s>,
windSpeed: <Wind speed in m/s>,
windDirection: <Wind direction in degrees>, //direction into which the wind is blowing. 0° means North, 90° means East
}
Js example:
socket.on("telemetry", data => {
console.debug("tlemetry received", data);
}