Last change
on this file since 38 was 15, checked in by Bayard Gildas, 9 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.cpp
|
---|
| 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 | #include "AfroBldc.h"
|
---|
| 19 | #include "AfroBldc_impl.h"
|
---|
| 20 | #include <GroupBox.h>
|
---|
| 21 | #include <Layout.h>
|
---|
| 22 | #include <DoubleSpinBox.h>
|
---|
| 23 | #include <SpinBox.h>
|
---|
| 24 | #include <ComboBox.h>
|
---|
| 25 | #include <PushButton.h>
|
---|
| 26 |
|
---|
| 27 | using std::string;
|
---|
| 28 | using namespace flair::core;
|
---|
| 29 | using namespace flair::sensor;
|
---|
| 30 | using namespace flair::gui;
|
---|
| 31 |
|
---|
[15] | 32 | namespace flair {
|
---|
| 33 | namespace actuator {
|
---|
[3] | 34 |
|
---|
[15] | 35 | AfroBldc::AfroBldc(const IODevice *parent, Layout *layout, string name,
|
---|
| 36 | uint8_t motors_count, I2cPort *i2cport)
|
---|
| 37 | : Bldc(parent, layout, name, motors_count) {
|
---|
| 38 | pimpl_ = new AfroBldc_impl(this, layout, i2cport);
|
---|
[3] | 39 | }
|
---|
| 40 |
|
---|
[15] | 41 | AfroBldc::~AfroBldc() { delete pimpl_; }
|
---|
[3] | 42 |
|
---|
[15] | 43 | void AfroBldc::SetMotors(float *values) { pimpl_->SetMotors(values); }
|
---|
[3] | 44 |
|
---|
| 45 | } // end namespace actuator
|
---|
| 46 | } // end namespace flair
|
---|
Note:
See
TracBrowser
for help on using the repository browser.