Flair
Framework Libre Air
flair::filter::PlaneMultiplex Class Reference

Class defining plane multiplexing. More...

#include <PlaneMultiplex.h>

+ Inheritance diagram for flair::filter::PlaneMultiplex:

Public Types

enum  MotorNames_t { FrontMotor = 0, AileronRight = 1, AileronLeft = 2 }
 Motor names. More...
 
- Public Types inherited from flair::core::Object
enum  color_t { Auto = 0, Red = 31, Green = 32, Orange = 33 }
 

Public Member Functions

 PlaneMultiplex (std::string name)
 Constructor. More...
 
 ~PlaneMultiplex ()
 Destructor. More...
 
void UseDefaultPlot (void)
 Use default plot. More...
 
uint8_t MotorsCount (void) const
 Motors count. More...
 
core::IODeviceGetBldcMultiplex (void) const
 
core::IODeviceGetServosMultiplex (void) const
 
- Public Member Functions inherited from flair::filter::UavMultiplex
 UavMultiplex (std::string name)
 Constructor. More...
 
 ~UavMultiplex ()
 Destructor. More...
 
void SetRoll (float value)
 Set roll torque. More...
 
void SetPitch (float value)
 Set pitch torque. More...
 
void SetYaw (float value)
 Set yaw torque. More...
 
void SetThrust (float value)
 Set thrust. More...
 
void SetRollTrim (float value)
 Set roll trim. More...
 
void SetPitchTrim (float value)
 Set pitch trim. More...
 
void SetYawTrim (float value)
 Set yaw trim. More...
 
void Update (core::Time time)
 Update using provided datas. More...
 
void LockUserInterface (void) const
 Lock user interface. More...
 
void UnlockUserInterface (void) const
 Unlock user interface. More...
 
gui::LayoutGetLayout (void) const
 Layout. More...
 
int MultiplexValue (int index) const
 Multiplex value. More...
 
gui::TabWidgetGetTabWidget (void) const
 Get TabWidget. More...
 
- Public Member Functions inherited from flair::core::IODevice
 IODevice (const Object *parent, std::string name)
 Constructor. More...
 
virtual ~IODevice ()
 Destructor. More...
 
void AddDeviceToLog (const IODevice *device)
 Add an IODevice to the logs. More...
 
void AddDataToLog (const io_data *data)
 Add an io_data to the log. More...
 
void OutputToShMem (bool enabled)
 Send the output to a shared memory. More...
 
bool IsReady (void) const
 is device ready More...
 
virtual DataType const & GetInputDataType () const
 
virtual DataType const & GetOutputDataType () const
 
- Public Member Functions inherited from flair::core::Object
 Object (const Object *parent=NULL, std::string name="", std::string type="")
 Constructor. More...
 
virtual ~Object ()
 Destructor. More...
 
std::string ObjectName (void) const
 Name. More...
 
std::string ObjectType (void) const
 Type. More...
 
const ObjectParent (void) const
 Parent. More...
 
std::vector< const Object * > * TypeChilds (void) const
 Childs of the same type. More...
 
std::vector< const Object * > * Childs (void) const
 Childs. More...
 
void Information (const char *function, int line, const char *format,...) const
 Formatted information. More...
 
void Warning (const char *function, const char *format,...) const
 Formatted warning. More...
 
void Error (const char *function, const char *format,...) const
 Formatted error. More...
 
bool ErrorOccured (bool recursive=true) const
 Has an errror occured? More...
 

Additional Inherited Members

- Protected Member Functions inherited from flair::filter::UavMultiplex
void SetMultiplexComboBox (std::string name, int index)
 Set multiplex ComboBox. More...
 
- Protected Member Functions inherited from flair::core::IODevice
void ProcessUpdate (io_data *data)
 Process the childs of type IODevice, and log if needed. More...
 
void ProcessUpdate (std::vector< io_data * > *datas)
 Process the childs of type IODevice, and log if needed. More...
 
void SetIsReady (bool status)
 set is ready More...
 
virtual void UpdateFrom (const std::vector< const io_data * > *datas)
 Update using provided datas. More...
 

Detailed Description

Class defining plane multiplexing.

The output order of the motors can be changed through ground station.

Member Enumeration Documentation

Constructor & Destructor Documentation

flair::filter::PlaneMultiplex::PlaneMultiplex ( std::string  name)

Constructor.

Construct a autogyre multiplexing. It will be child of the FrameworkManager.

Parameters
namename
typetype
flair::filter::PlaneMultiplex::~PlaneMultiplex ( )

Destructor.

Member Function Documentation

void flair::filter::PlaneMultiplex::UseDefaultPlot ( void  )
virtual

Use default plot.

Plot the output values.

Reimplemented from flair::filter::UavMultiplex.

uint8_t flair::filter::PlaneMultiplex::MotorsCount ( void  ) const
virtual

Motors count.

Reimplemented from UavMultiplex.

Returns
motors count

Implements flair::filter::UavMultiplex.