Flair
Framework Libre Air
AfroBldc.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 AFROBLDC_H
14 #define AFROBLDC_H
15 
16 #include "Bldc.h"
17 
18 namespace flair {
19 namespace core {
20 class I2cPort;
21 }
22 namespace sensor {
23 class BatteryMonitor;
24 }
25 }
26 
27 class AfroBldc_impl;
28 
29 namespace flair {
30 namespace actuator {
37 class AfroBldc : public Bldc {
38  friend class ::AfroBldc_impl;
39 
40 public:
52  AfroBldc(const core::IODevice *parent, gui::Layout *layout, std::string name,
53  uint8_t motors_count, core::I2cPort *i2cport);
54 
59  ~AfroBldc();
60 
68  bool HasSpeedMeasurement(void) const { return false; };
69 
77  bool HasCurrentMeasurement(void) const { return false; };
78 
79 private:
88  void SetMotors(float *values);
89 
90  class AfroBldc_impl *pimpl_;
91 };
92 } // end namespace actuator
93 } // end namespace flair
94 #endif // AFROBLDC_H
bool HasSpeedMeasurement(void) const
Has speed measurement.
Definition: AfroBldc.h:68
Abstract class for input/ouput system.
Definition: IODevice.h:45
namespace of the flair Framework
Definition: Ahrs.h:19
AfroBldc(const core::IODevice *parent, gui::Layout *layout, std::string name, uint8_t motors_count, core::I2cPort *i2cport)
Constructor.
Class for Mikrokopter's blctrlv2.
Definition: AfroBldc.h:37
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
Base class for i2c port.
Definition: I2cPort.h:31
bool HasCurrentMeasurement(void) const
Has current measurement.
Definition: AfroBldc.h:77
Base class for brushless motors drivers.
Definition: Bldc.h:37
Base class for brushless motors drivers.