UgCS video streamer
Public Member Functions | Public Attributes | List of all members
Telemetry Struct Reference

#include <telemetry.h>

Public Member Functions

void Merge (const Telemetry &other)
 
void Reset ()
 
ff::AvPacket ToKlvPacket (const std::string &tailNumber) const
 
void Validate () const
 

Public Attributes

Optional< std::string > missionId
 
Optional< std::string > platformDesignation
 
Optional< std::string > cameraManufacturer
 
Optional< std::string > cameraModel
 
Optional< double > heading
 
Optional< double > pitch
 
Optional< double > roll
 
Optional< double > latitude
 
Optional< double > longitude
 
Optional< double > altitude
 
Optional< double > sensorHorizontalFov
 
Optional< double > sensorVerticalFov
 
Optional< double > sensorRelativeAzimuth
 
Optional< double > sensorRelativeElevation
 
Optional< double > sensorRelativeRoll
 
Optional< double > slantRange
 
Optional< double > cameraFocalLength
 

Detailed Description

Telemetry block. See VsTelemetry for fields description.

Member Function Documentation

◆ Merge()

void Telemetry::Merge ( const Telemetry other)

Overwrite values which are set in the specified telemetry block. Empty values do not affect values in this instance.

◆ Reset()

void Telemetry::Reset ( )

Set all fields empty.

◆ ToKlvPacket()

ff::AvPacket Telemetry::ToKlvPacket ( const std::string &  tailNumber) const

Get KLV-encoded ffmpeg frame for this telemetry object. Timestamp and tail number fields are always present. Non-empty fields of this telemetry block are inserted as well. Timestamp is generated from current system time.

◆ Validate()

void Telemetry::Validate ( ) const

Validate values to ensure they can be represented in KLV. InvalidParamException is thrown if any value is out of range.

Member Data Documentation

◆ cameraFocalLength

Optional<double> Telemetry::cameraFocalLength

In millimeters.


The documentation for this struct was generated from the following file: