Flair
Framework Libre Air
flair::meta::Uav Class Referenceabstract

Base class to construct sensors/actuators depending on uav type. The Object is created with the FrameworkManager as parent. FrameworkManager must be created before. Only one instance of this class is allowed by program. More...

#include <Uav.h>

+ Inheritance diagram for flair::meta::Uav:

Public Member Functions

 Uav (std::string name, filter::UavMultiplex *multiplex=NULL)
 
virtual void StartSensors (void)=0
 
void UseDefaultPlot (void)
 
actuator::BldcGetBldc (void) const
 
filter::UavMultiplexGetUavMultiplex (void) const
 
sensor::ImuGetImu (void) const
 
filter::AhrsGetAhrs (void) const
 
MetaUsRangeFinderGetMetaUsRangeFinder (void) const
 
sensor::UsRangeFinderGetUsRangeFinder (void) const
 
sensor::BatteryMonitorGetBatteryMonitor (void) const
 
sensor::CameraGetVerticalCamera (void) const
 
sensor::CameraGetHorizontalCamera (void) const
 
sensor::NmeaGpsGetGps (void) const
 
sensor::PressureSensorGetPressureSensor (void) const
 
virtual std::string GetDefaultVrpnAddress (void) const
 
virtual bool isReadyToFly (void) const
 
virtual std::string GetType (void) const =0
 
- 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...
 

Protected Member Functions

void SetBldc (const actuator::Bldc *bldc)
 
void SetMultiplex (const filter::UavMultiplex *multiplex)
 
void SetAhrs (const filter::Ahrs *ahrs)
 
void SetUsRangeFinder (const sensor::UsRangeFinder *us)
 
void SetBatteryMonitor (const sensor::BatteryMonitor *battery)
 
void SetVerticalCamera (const sensor::Camera *verticalCamera)
 
void SetHorizontalCamera (const sensor::Camera *verticalCamera)
 
void SetGps (const sensor::NmeaGps *gps)
 
void SetPressureSensor (const sensor::PressureSensor *pressureSensor)
 

Additional Inherited Members

- Public Types inherited from flair::core::Object
enum  color_t { Auto = 0, Red = 31, Green = 32, Orange = 33 }
 

Detailed Description

Base class to construct sensors/actuators depending on uav type. The Object is created with the FrameworkManager as parent. FrameworkManager must be created before. Only one instance of this class is allowed by program.