Flair
Framework Libre Air
XBldc.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef XBLDC_H
14 #define XBLDC_H
15 
16 #include "Bldc.h"
17 
18 namespace flair {
19 namespace core {
20 class IODevice;
21 class I2cPort;
22 }
23 namespace gui {
24 class Layout;
25 }
26 }
27 
28 class XBldc_impl;
29 
30 namespace flair {
31 namespace actuator {
36 class XBldc : public Bldc {
37 public:
48  XBldc(const core::IODevice *parent, gui::Layout *layout, std::string name,
49  core::I2cPort *i2cport);
50 
55  ~XBldc();
56 
64  bool HasSpeedMeasurement(void) const { return false; };
65 
73  bool HasCurrentMeasurement(void) const { return false; };
74 
75 private:
84  void SetMotors(float *value);
85 
86  class XBldc_impl *pimpl_;
87 };
88 } // end namespace actuator
89 } // end namespace flair
90 #endif // XBLDC_H
Abstract class for input/ouput system.
Definition: IODevice.h:45
namespace of the flair Framework
Definition: Ahrs.h:19
bool HasSpeedMeasurement(void) const
Has speed measurement.
Definition: XBldc.h:64
XBldc(const core::IODevice *parent, gui::Layout *layout, std::string name, core::I2cPort *i2cport)
Constructor.
bool HasCurrentMeasurement(void) const
Has current measurement.
Definition: XBldc.h:73
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
Class for Xufo Bldc.
Definition: XBldc.h:36
~XBldc()
Destructor.
Base class for i2c port.
Definition: I2cPort.h:31
Base class for brushless motors drivers.
Definition: Bldc.h:37
Base class for brushless motors drivers.