Flair
Framework Libre Air
SimulatedBldc.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 SIMULATEDBLDC_H
14 #define SIMULATEDBLDC_H
15 
16 #include <Bldc.h>
17 
18 namespace flair {
19 namespace core {
20 class SharedMem;
21 class IODevice;
22 class Matrix;
23 }
24 namespace gui {
25 class DoubleSpinBox;
26 class Layout;
27 }
28 }
29 
30 namespace flair {
31 namespace actuator {
37 class SimulatedBldc : public Bldc {
38 public:
51  SimulatedBldc(const core::IODevice *parent, gui::Layout *layout, std::string name,
52  uint8_t motors_count, uint32_t modelId,uint32_t deviceId);
53 
59 
67  bool HasSpeedMeasurement(void) const { return false; };
68 
76  bool HasCurrentMeasurement(void) const { return false; };
77 
78 private:
87  void SetMotors(float *value);
88 
89  std::string ShMemName(uint32_t modelId,uint32_t deviceId);
90  core::SharedMem *shmem;
92  char *buf;
93 
94 };
95 } // end namespace actuator
96 } // end namespace flair
97 #endif // SIMULATEDBLDC_H
Class for a simulation bldc.
Definition: SimulatedBldc.h:37
SimulatedBldc(const core::IODevice *parent, gui::Layout *layout, std::string name, uint8_t motors_count, uint32_t modelId, uint32_t deviceId)
Constructor.
Abstract class for input/ouput system.
Definition: IODevice.h:45
namespace of the flair Framework
Definition: Ahrs.h:19
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
bool HasSpeedMeasurement(void) const
Has speed measurement.
Definition: SimulatedBldc.h:67
Class defining a shared memory.
Definition: SharedMem.h:32
Class displaying a QDoubleSpinBox on the ground station.
Definition: DoubleSpinBox.h:28
bool HasCurrentMeasurement(void) const
Has current measurement.
Definition: SimulatedBldc.h:76
Base class for brushless motors drivers.
Definition: Bldc.h:37
Base class for brushless motors drivers.