Flair
Framework Libre Air
BlCtrlV2.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 BLCTRLV2_H
14 #define BLCTRLV2_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 BlCtrlV2_impl;
28 
29 namespace flair {
30 namespace actuator {
37 class BlCtrlV2 : public Bldc {
38  friend class ::BlCtrlV2_impl;
39 
40 public:
52  BlCtrlV2(const core::IODevice *parent, gui::Layout *layout, std::string name,
53  uint8_t motors_count, core::I2cPort *i2cport);
54 
59  ~BlCtrlV2();
60 
67 
75  bool HasSpeedMeasurement(void) const { return true; };
76 
84  bool HasCurrentMeasurement(void) const { return true; };
85 
86 private:
95  void SetMotors(float *values);
96 
97  class BlCtrlV2_impl *pimpl_;
98 };
99 } // end namespace actuator
100 } // end namespace flair
101 #endif // BLCTRLV2_H
Abstract class for input/ouput system.
Definition: IODevice.h:45
sensor::BatteryMonitor * GetBatteryMonitor(void) const
Get battery monitor.
namespace of the flair Framework
Definition: Ahrs.h:19
bool HasSpeedMeasurement(void) const
Has speed measurement.
Definition: BlCtrlV2.h:75
BlCtrlV2(const core::IODevice *parent, gui::Layout *layout, std::string name, uint8_t motors_count, core::I2cPort *i2cport)
Constructor.
Class for Mikrokopter's blctrlv2.
Definition: BlCtrlV2.h:37
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
Base class for battery monitor.
Definition: BatteryMonitor.h:35
Base class for i2c port.
Definition: I2cPort.h:31
Base class for brushless motors drivers.
Definition: Bldc.h:37
bool HasCurrentMeasurement(void) const
Has current measurement.
Definition: BlCtrlV2.h:84
Base class for brushless motors drivers.