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

Worker class that runs periodic tasks for MockLink simulation. More...

#include <MockLinkWorker.h>

Inheritance diagram for MockLinkWorker:
Collaboration diagram for MockLinkWorker:

Public Slots

void startWork ()
void stopWork ()

Public Member Functions

 MockLinkWorker (MockLink *link, QObject *parent=nullptr)
 ~MockLinkWorker ()

Static Public Attributes

static constexpr int kTimer1HzIntervalMs = 1000
 Timer intervals in milliseconds.
static constexpr int kTimer10HzIntervalMs = 100
 10 Hz tasks (heartbeat, GPS, position)
static constexpr int kTimer500HzIntervalMs = 2
 500 Hz tasks (param list, log download)
static constexpr int kBootStatusTextDelayMs = 2000
 Delay before sending the non-critical status text messages.
static constexpr int kStatusTextDelayMs = 10000
 Delay before sending status text messages.

Detailed Description

Worker class that runs periodic tasks for MockLink simulation.

Operates on a separate thread to avoid blocking the main thread.

Definition at line 12 of file MockLinkWorker.h.

Constructor & Destructor Documentation

◆ MockLinkWorker()

MockLinkWorker::MockLinkWorker ( MockLink * link,
QObject * parent = nullptr )
explicit

Definition at line 6 of file MockLinkWorker.cc.

◆ ~MockLinkWorker()

MockLinkWorker::~MockLinkWorker ( )

Definition at line 13 of file MockLinkWorker.cc.

References stopWork().

Member Function Documentation

◆ startWork

void MockLinkWorker::startWork ( )
slot

◆ stopWork

void MockLinkWorker::stopWork ( )
slot

Definition at line 53 of file MockLinkWorker.cc.

Referenced by ~MockLinkWorker().

Member Data Documentation

◆ kBootStatusTextDelayMs

int MockLinkWorker::kBootStatusTextDelayMs = 2000
staticconstexpr

Delay before sending the non-critical status text messages.

Definition at line 24 of file MockLinkWorker.h.

Referenced by startWork().

◆ kStatusTextDelayMs

int MockLinkWorker::kStatusTextDelayMs = 10000
staticconstexpr

Delay before sending status text messages.

Definition at line 25 of file MockLinkWorker.h.

Referenced by startWork().

◆ kTimer10HzIntervalMs

int MockLinkWorker::kTimer10HzIntervalMs = 100
staticconstexpr

10 Hz tasks (heartbeat, GPS, position)

Definition at line 22 of file MockLinkWorker.h.

Referenced by startWork().

◆ kTimer1HzIntervalMs

int MockLinkWorker::kTimer1HzIntervalMs = 1000
staticconstexpr

Timer intervals in milliseconds.

1 Hz tasks (battery, sys status, ADSB, etc.)

Definition at line 21 of file MockLinkWorker.h.

Referenced by startWork().

◆ kTimer500HzIntervalMs

int MockLinkWorker::kTimer500HzIntervalMs = 2
staticconstexpr

500 Hz tasks (param list, log download)

Definition at line 23 of file MockLinkWorker.h.

Referenced by startWork().


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