dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
BrainFPV boards support Plugin

Plugin to support boards by BrainFPV. More...

Classes

class  BrainRE1
 

Functions

 BrainRE1::BrainRE1 ()
 Brain::Brain This is the Brain board definition. More...
 
virtual BrainRE1::~BrainRE1 ()
 
virtual QString BrainRE1::shortName ()
 
virtual QString BrainRE1::boardDescription ()
 
virtual bool BrainRE1::queryCapabilities (BoardCapabilities capability)
 Return which capabilities this board has. More...
 
virtual QPixmap BrainRE1::getBoardPicture ()
 getBoardPicture More...
 
virtual QString BrainRE1::getHwUAVO ()
 
virtual bool BrainRE1::isInputConfigurationSupported (Core::IBoardType::InputType type)
 Determine if this board supports configuring the receiver. More...
 
virtual bool BrainRE1::setInputType (Core::IBoardType::InputType type)
 
virtual Core::IBoardType::InputType BrainRE1::getInputType ()
 getInputOnPort get the current input type More...
 
virtual QString BrainRE1::getConnectionDiagram ()
 getConnectionDiagram get the connection diagram for this board More...
 
virtual int BrainRE1::queryMaxGyroRate ()
 Query the board for the currently set max rate of the gyro. More...
 
virtual QWidget * BrainRE1::getBoardConfiguration (QWidget *parent, bool connected)
 Return a custom configuration widget, if one is provided. More...
 
virtual QStringList BrainRE1::getAdcNames ()
 
virtual QVector< QVector< int > > BrainRE1::getChannelBanks ()
 Get banks of output PWM channels banks on the board. More...
 
virtual bool BrainRE1::hasAnnunciator (AnnunciatorType annunc)
 Check if the board has the given type of annunciator. More...
 

Detailed Description

Plugin to support boards by BrainFPV.

Function Documentation

QString BrainRE1::boardDescription ( )
virtual

Long description of the board

Implements Core::IBoardType.

Definition at line 66 of file brainre1.cpp.

BrainRE1::BrainRE1 ( void  )

Brain::Brain This is the Brain board definition.

Definition at line 41 of file brainre1.cpp.

QStringList BrainRE1::getAdcNames ( )
virtual

Reimplemented from Core::IBoardType.

Definition at line 235 of file brainre1.cpp.

QWidget * BrainRE1::getBoardConfiguration ( QWidget *  ,
bool   
)
virtual

Return a custom configuration widget, if one is provided.

Reimplemented from Core::IBoardType.

Definition at line 242 of file brainre1.cpp.

QPixmap BrainRE1::getBoardPicture ( )
virtual

getBoardPicture

Returns
provides a picture for the board. Uploader gadget or configuration plugin can use this, for instance.
Todo:
this API is not stable yet.

Implements Core::IBoardType.

Definition at line 85 of file brainre1.cpp.

QVector< QVector< int > > BrainRE1::getChannelBanks ( )
virtual

Get banks of output PWM channels banks on the board.

Returns
matrix of channel bank names

Reimplemented from Core::IBoardType.

Definition at line 248 of file brainre1.cpp.

virtual QString BrainRE1::getConnectionDiagram ( )
inlinevirtual

getConnectionDiagram get the connection diagram for this board

Returns
a string with the name of the resource for this board diagram

Reimplemented from Core::IBoardType.

Definition at line 64 of file brainre1.h.

QString BrainRE1::getHwUAVO ( )
virtual

Get name of the HW Configuration UAVObject

Implements Core::IBoardType.

Definition at line 104 of file brainre1.cpp.

Core::IBoardType::InputType BrainRE1::getInputType ( )
virtual

getInputOnPort get the current input type

Brain::getInputOnPort fetch the currently selected input type.

Parameters
port_numwhich input port to query (board specific numbering)
Returns
the currently selected input type
Parameters
port_numthe port number to query (must be zero)
Returns
the selected input type

Reimplemented from Core::IBoardType.

Definition at line 169 of file brainre1.cpp.

bool BrainRE1::hasAnnunciator ( AnnunciatorType  annunc)
virtual

Check if the board has the given type of annunciator.

Parameters
annuncAnnunciator type of interest
Returns
true if present

Reimplemented from Core::IBoardType.

Definition at line 271 of file brainre1.cpp.

bool BrainRE1::isInputConfigurationSupported ( Core::IBoardType::InputType  type)
virtual

Determine if this board supports configuring the receiver.

Reimplemented from Core::IBoardType.

Definition at line 91 of file brainre1.cpp.

bool BrainRE1::queryCapabilities ( BoardCapabilities  capability)
virtual

Return which capabilities this board has.

Implements Core::IBoardType.

Definition at line 72 of file brainre1.cpp.

int BrainRE1::queryMaxGyroRate ( )
virtual

Query the board for the currently set max rate of the gyro.

Returns
max rate of gyro

Reimplemented from Core::IBoardType.

Definition at line 230 of file brainre1.cpp.

bool BrainRE1::setInputType ( Core::IBoardType::InputType  type)
virtual

Configure the board to use an receiver input type on a port number

Parameters
typethe type of receiver to use
port_numwhich input port to configure (board specific numbering)

Configure the board to use a receiver input type on a port number

Parameters
typethe type of receiver to use
port_numwhich input port to configure (board specific numbering)
Returns
true if successfully configured or false otherwise

Reimplemented from Core::IBoardType.

Definition at line 115 of file brainre1.cpp.

QString BrainRE1::shortName ( )
virtual

Short description of the board / friendly name

Implements Core::IBoardType.

Definition at line 61 of file brainre1.cpp.

BrainRE1::~BrainRE1 ( )
virtual

Definition at line 57 of file brainre1.cpp.