Last change
on this file since 35 was 13, checked in by Bayard Gildas, 9 years ago |
formatting script + include reformatted
|
File size:
1.6 KB
|
Rev | Line | |
---|
[4] | 1 | // %flair:license{
|
---|
[13] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[4] | 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 |
|
---|
[13] | 18 | namespace flair {
|
---|
| 19 | namespace core {
|
---|
| 20 | class IODevice;
|
---|
| 21 | class I2cPort;
|
---|
[4] | 22 | }
|
---|
[13] | 23 | namespace gui {
|
---|
| 24 | class Layout;
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
[4] | 27 |
|
---|
| 28 | class XBldc_impl;
|
---|
| 29 |
|
---|
[13] | 30 | namespace flair {
|
---|
| 31 | namespace actuator {
|
---|
| 32 | /*! \class XBldc
|
---|
| 33 | *
|
---|
| 34 | * \brief Class for Xufo Bldc
|
---|
| 35 | */
|
---|
| 36 | class XBldc : public Bldc {
|
---|
| 37 | public:
|
---|
| 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);
|
---|
[4] | 50 |
|
---|
[13] | 51 | /*!
|
---|
| 52 | * \brief Destructor
|
---|
| 53 | *
|
---|
| 54 | */
|
---|
| 55 | ~XBldc();
|
---|
[4] | 56 |
|
---|
[13] | 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; };
|
---|
[4] | 65 |
|
---|
[13] | 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; };
|
---|
[4] | 74 |
|
---|
[13] | 75 | private:
|
---|
| 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);
|
---|
[4] | 85 |
|
---|
[13] | 86 | class XBldc_impl *pimpl_;
|
---|
| 87 | };
|
---|
[4] | 88 | } // end namespace actuator
|
---|
| 89 | } // end namespace flair
|
---|
| 90 | #endif // XBLDC_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.