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

#include <MAVLinkConsoleController.h>

+ Inheritance diagram for MAVLinkConsoleController:
+ Collaboration diagram for MAVLinkConsoleController:

Public Member Functions

 MAVLinkConsoleController (QObject *parent=nullptr)
 
 ~MAVLinkConsoleController ()
 
void sendCommand (const QString &command)
 
QString historyUp (const QString &current)
 
QString historyDown (const QString &current)
 
QString handleClipboard (const QString &command_pre)
 

Detailed Description

Definition at line 15 of file MAVLinkConsoleController.h.

Constructor & Destructor Documentation

◆ MAVLinkConsoleController()

MAVLinkConsoleController::MAVLinkConsoleController ( QObject *  parent = nullptr)
explicit

◆ ~MAVLinkConsoleController()

MAVLinkConsoleController::~MAVLinkConsoleController ( )

Definition at line 24 of file MAVLinkConsoleController.cc.

Member Function Documentation

◆ handleClipboard()

QString MAVLinkConsoleController::handleClipboard ( const QString &  command_pre)

Get clipboard data and if it has N lines, execute first N-1 commands

Parameters
command_preprefix to data from clipboard
Returns
last line of the clipboard data

Definition at line 51 of file MAVLinkConsoleController.cc.

References sendCommand().

◆ historyDown()

QString MAVLinkConsoleController::historyDown ( const QString &  current)
inline

Definition at line 41 of file MAVLinkConsoleController.h.

◆ historyUp()

QString MAVLinkConsoleController::historyUp ( const QString &  current)
inline

Definition at line 40 of file MAVLinkConsoleController.h.

◆ sendCommand()

void MAVLinkConsoleController::sendCommand ( const QString &  command)

Definition at line 34 of file MAVLinkConsoleController.cc.

Referenced by handleClipboard().


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