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 FrameworkManager;
21 class I2cPort;
22 }
23 namespace sensor {
24 class BatteryMonitor;
25 }
26 }
27 
28 class AfroBldc_impl;
29 
30 namespace flair {
31 namespace actuator {
38 class AfroBldc : public Bldc {
39  friend class ::AfroBldc_impl;
40 
41 public:
53  AfroBldc(const core::IODevice *parent, gui::Layout *layout, std::string name,
54  uint8_t motors_count, core::I2cPort *i2cport);
55 
60  ~AfroBldc();
61 
69  bool HasSpeedMeasurement(void) const { return false; };
70 
78  bool HasCurrentMeasurement(void) const { return false; };
79 
80 private:
89  void SetMotors(float *values);
90 
91  class AfroBldc_impl *pimpl_;
92 };
93 } // end namespace actuator
94 } // end namespace flair
95 #endif // AFROBLDC_H
bool HasSpeedMeasurement(void) const
Has speed measurement.
Definition: AfroBldc.h:69
Abstract class for input/ouput system.
Definition: IODevice.h:44
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:38
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:78
Base class for brushless motors drivers.
Definition: Bldc.h:38
Base class for brushless motors drivers.