Last change
on this file since 311 was 15, checked in by Bayard Gildas, 8 years ago |
sources reformatted with flair-format-dir script
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[3] | 4 | // %flair:license}
|
---|
| 5 | // created: 2015/06/15
|
---|
| 6 | // filename: AfroBldc_impl.h
|
---|
| 7 | //
|
---|
| 8 | // author: Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: objet integrant les moteurs i2c
|
---|
| 14 | //
|
---|
| 15 | //
|
---|
| 16 | /*********************************************************************/
|
---|
| 17 |
|
---|
| 18 | #ifndef AFROBLDC_IMPL_H
|
---|
| 19 | #define AFROBLDC_IMPL_H
|
---|
| 20 |
|
---|
| 21 | #include <stdint.h>
|
---|
| 22 | #include <Object.h>
|
---|
| 23 |
|
---|
| 24 | #define MAX_MOTORS 8
|
---|
| 25 |
|
---|
[15] | 26 | namespace flair {
|
---|
| 27 | namespace core {
|
---|
| 28 | class I2cPort;
|
---|
[3] | 29 | }
|
---|
[15] | 30 | namespace gui {
|
---|
| 31 | class SpinBox;
|
---|
| 32 | class GroupBox;
|
---|
| 33 | class Layout;
|
---|
| 34 | }
|
---|
| 35 | namespace actuator {
|
---|
| 36 | class AfroBldc;
|
---|
| 37 | }
|
---|
| 38 | namespace sensor {
|
---|
| 39 | class BatteryMonitor;
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
[3] | 42 |
|
---|
[15] | 43 | class AfroBldc_impl {
|
---|
| 44 | public:
|
---|
| 45 | AfroBldc_impl(flair::actuator::AfroBldc *self, flair::gui::Layout *layout,
|
---|
| 46 | flair::core::I2cPort *i2cport);
|
---|
| 47 | ~AfroBldc_impl();
|
---|
| 48 | void SetMotors(float *value);
|
---|
[3] | 49 |
|
---|
[15] | 50 | private:
|
---|
| 51 | void WriteValue(uint16_t value); // I2cPort mutex must be taken before calling
|
---|
| 52 | // this function
|
---|
| 53 | int nb_mot;
|
---|
| 54 | flair::core::I2cPort *i2cport;
|
---|
| 55 | flair::actuator::AfroBldc *self;
|
---|
[3] | 56 | };
|
---|
| 57 |
|
---|
| 58 | #endif // AFROBLDC_IMPL_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.