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

Last change on this file since 12 was 4, checked in by Sanahuja Guillaume, 9 years ago

sensoractuator

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