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 FrameworkManager;
21 class I2cPort;
22 }
23 namespace sensor {
24 class BatteryMonitor;
25 }
26 }
27 
28 class BlCtrlV2_impl;
29 
30 namespace flair {
31 namespace actuator {
38 class BlCtrlV2 : public Bldc {
39  friend class ::BlCtrlV2_impl;
40 
41 public:
53  BlCtrlV2(const core::IODevice *parent, gui::Layout *layout, std::string name,
54  uint8_t motors_count, core::I2cPort *i2cport);
55 
60  ~BlCtrlV2();
61 
68 
76  bool HasSpeedMeasurement(void) const { return true; };
77 
85  bool HasCurrentMeasurement(void) const { return true; };
86 
87 private:
96  void SetMotors(float *values);
97 
98  class BlCtrlV2_impl *pimpl_;
99 };
100 } // end namespace actuator
101 } // end namespace flair
102 #endif // BLCTRLV2_H
Abstract class for input/ouput system.
Definition: IODevice.h:44
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:76
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:38
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
Base class for battery monitor.
Definition: BatteryMonitor.h:34
Base class for i2c port.
Definition: I2cPort.h:31
Base class for brushless motors drivers.
Definition: Bldc.h:38
bool HasCurrentMeasurement(void) const
Has current measurement.
Definition: BlCtrlV2.h:85
Base class for brushless motors drivers.