QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
TelemetryBarValues Class Reference

#include <TelemetryBarValues.h>

Classes

struct  Value

Public Member Functions

void readLayout ()
std::optional< QList< Value > > read () const

Detailed Description

The values the Fly View's telemetry bar shows, read from the active vehicle: what the video's telemetry subtitles and overlay show.

Definition at line 10 of file TelemetryBarValues.h.

Member Function Documentation

◆ read()

std::optional< QList< TelemetryBarValues::Value > > TelemetryBarValues::read ( ) const

The active vehicle's value of each of the bar's Facts it has, in the bar's order; nullopt without an active vehicle.

Definition at line 21 of file TelemetryBarValues.cc.

References MultiVehicleManager::activeVehicle(), Fact::cookedUnits(), Fact::cookedValueString(), FactGroup::factExists(), FactGroup::factGroups(), FactGroup::getFact(), MultiVehicleManager::instance(), Fact::shortDescription(), and InstrumentValueData::vehicleFactGroupName.

◆ readLayout()

void TelemetryBarValues::readLayout ( )

(Re)reads the bar's layout, defaults included: read() doesn't follow later changes to it. Without a layout, read() has no values.

Definition at line 12 of file TelemetryBarValues.cc.

References FactValueGrid::layoutFacts(), and HorizontalFactValueGrid::telemetryBarSettingsGroup.


The documentation for this class was generated from the following files: