source: flair-dev/trunk/include/FlairSensorActuator/XBldc.h@ 82

Last change on this file since 82 was 13, checked in by Bayard Gildas, 8 years ago

formatting script + include reformatted

File size: 1.6 KB
Line 
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}
5/*!
6 * \file XBldc.h
7 * \brief Class for Xufo Bldc
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2013/11/13
10 * \version 4.0
11 */
12
13#ifndef XBLDC_H
14#define XBLDC_H
15
16#include "Bldc.h"
17
18namespace flair {
19namespace core {
20class IODevice;
21class I2cPort;
22}
23namespace gui {
24class Layout;
25}
26}
27
28class XBldc_impl;
29
30namespace flair {
31namespace actuator {
32/*! \class XBldc
33*
34* \brief Class for Xufo Bldc
35*/
36class XBldc : public Bldc {
37public:
38 /*!
39 * \brief Constructor
40 *
41 * Construct a XBldc.
42 *
43 * \param parent parent
44 * \param layout layout
45 * \param name name
46 * \param i2cport i2cport
47 */
48 XBldc(const core::IODevice *parent, gui::Layout *layout, std::string name,
49 core::I2cPort *i2cport);
50
51 /*!
52 * \brief Destructor
53 *
54 */
55 ~XBldc();
56
57 /*!
58 * \brief Has speed measurement
59 *
60 * Reimplemented from Bldc. \n
61 *
62 * \return true if it has speed measurement
63 */
64 bool HasSpeedMeasurement(void) const { return false; };
65
66 /*!
67 * \brief Has current measurement
68 *
69 * Reimplemented from Bldc. \n
70 *
71 * \return true if it has current measurement
72 */
73 bool HasCurrentMeasurement(void) const { return false; };
74
75private:
76 /*!
77 * \brief Set motors values
78 *
79 * Reimplemented from Bldc. \n
80 * Values size must be the same as MotorsCount()
81 *
82 * \param values motor values
83 */
84 void SetMotors(float *value);
85
86 class XBldc_impl *pimpl_;
87};
88} // end namespace actuator
89} // end namespace flair
90#endif // XBLDC_H
Note: See TracBrowser for help on using the repository browser.