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

#include <LogReplayLink.h>

+ Inheritance diagram for LogReplayLink:
+ Collaboration diagram for LogReplayLink:

Signals

void logFileStats (uint32_t logDurationSecs)
 
void playbackStarted ()
 
void playbackPaused ()
 
void playbackAtEnd ()
 
void playbackPercentCompleteChanged (qreal percentComplete)
 
void currentLogTimeSecs (uint32_t secs)
 
- Signals inherited from LinkInterface
void bytesReceived (LinkInterface *link, const QByteArray &data)
 
void bytesSent (LinkInterface *link, const QByteArray &data)
 
void connected ()
 
void disconnected ()
 
void communicationError (const QString &title, const QString &error)
 

Public Member Functions

 LogReplayLink (SharedLinkConfigurationPtr &config, QObject *parent=nullptr)
 
virtual ~LogReplayLink ()
 
bool isConnected () const override
 
void disconnect () override
 
bool isLogReplay () const final
 
bool isPlaying () const
 
void play ()
 
void pause ()
 
void setPlaybackSpeed (qreal playbackSpeed)
 
void movePlayhead (qreal percentComplete)
 
- Public Member Functions inherited from LinkInterface
virtual ~LinkInterface ()
 
virtual bool isSecureConnection () const
 
virtual bool isRadioLink () const
 
void reportRadioStatusReceived ()
 
SharedLinkConfigurationPtr linkConfiguration ()
 
const SharedLinkConfigurationPtr linkConfiguration () const
 
uint8_t mavlinkChannel () const
 
bool mavlinkChannelIsSet () const
 
bool decodedFirstMavlinkPacket () const
 
void setDecodedFirstMavlinkPacket (bool decodedFirstMavlinkPacket)
 
void writeBytesThreadSafe (const char *bytes, int length)
 
void sendMessageThreadSafe (mavlink_message_t &message)
 
void addVehicleReference ()
 
void removeVehicleReference ()
 
void reportMavlinkV1Traffic ()
 
void reportMavlinkV2Traffic ()
 Called when a v2 message is received: permanently suppresses the v1-only warning for this link.
 
bool mavlinkV1TrafficReported () const
 
SigningController * signing ()
 Per-link signing state and confirmation state machine. Non-null after channel allocation.
 
const SigningController * signing () const
 

Additional Inherited Members

- Static Public Member Functions inherited from LinkInterface
static void setMavlinkV1TrafficGraceMsecs (int msecs)
 
- Static Public Attributes inherited from LinkInterface
static constexpr int kMavlinkV1TrafficGraceMsecsDefault = 10000
 
- Protected Member Functions inherited from LinkInterface
 LinkInterface (SharedLinkConfigurationPtr &config, QObject *parent=nullptr)
 Links are only created by LinkManager so constructor is not public.
 
virtual bool _allocateMavlinkChannel ()
 
virtual void _freeMavlinkChannel ()
 
void _connectionRemoved ()
 
void _shutdownWorkerThread (QThread *thread, const QLoggingCategory &category, bool allowTerminate=true)
 
- Protected Attributes inherited from LinkInterface
SharedLinkConfigurationPtr _config
 

Detailed Description

Definition at line 115 of file LogReplayLink.h.

Constructor & Destructor Documentation

◆ LogReplayLink()

◆ ~LogReplayLink()

LogReplayLink::~LogReplayLink ( )
virtual

Definition at line 455 of file LogReplayLink.cc.

References LinkInterface::_shutdownWorkerThread(), and isConnected().

Member Function Documentation

◆ currentLogTimeSecs

void LogReplayLink::currentLogTimeSecs ( uint32_t  secs)
signal

◆ disconnect()

void LogReplayLink::disconnect ( )
overridevirtual

Implements LinkInterface.

Definition at line 480 of file LogReplayLink.cc.

References isConnected().

◆ isConnected()

bool LogReplayLink::isConnected ( ) const
overridevirtual

Implements LinkInterface.

Definition at line 470 of file LogReplayLink.cc.

References LogReplayWorker::isConnected().

Referenced by disconnect(), and ~LogReplayLink().

◆ isLogReplay()

bool LogReplayLink::isLogReplay ( ) const
inlinefinalvirtual

Reimplemented from LinkInterface.

Definition at line 125 of file LogReplayLink.h.

◆ isPlaying()

bool LogReplayLink::isPlaying ( ) const

Definition at line 511 of file LogReplayLink.cc.

References LogReplayWorker::isPlaying().

◆ logFileStats

void LogReplayLink::logFileStats ( uint32_t  logDurationSecs)
signal

◆ movePlayhead()

void LogReplayLink::movePlayhead ( qreal  percentComplete)

Definition at line 531 of file LogReplayLink.cc.

◆ pause()

void LogReplayLink::pause ( )

Definition at line 521 of file LogReplayLink.cc.

◆ play()

void LogReplayLink::play ( )

Definition at line 516 of file LogReplayLink.cc.

◆ playbackAtEnd

void LogReplayLink::playbackAtEnd ( )
signal

◆ playbackPaused

void LogReplayLink::playbackPaused ( )
signal

◆ playbackPercentCompleteChanged

void LogReplayLink::playbackPercentCompleteChanged ( qreal  percentComplete)
signal

◆ playbackStarted

void LogReplayLink::playbackStarted ( )
signal

◆ setPlaybackSpeed()

void LogReplayLink::setPlaybackSpeed ( qreal  playbackSpeed)

Definition at line 526 of file LogReplayLink.cc.

Referenced by LogReplayLinkController::setLink().


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