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.3 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: 2011/09/13
|
---|
| 6 | // filename: BlCtrlV2.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 "BlCtrlV2.h"
|
---|
| 19 | #include "BlCtrlV2_impl.h"
|
---|
| 20 | #include "BatteryMonitor.h"
|
---|
| 21 | #include <GroupBox.h>
|
---|
| 22 | #include <Layout.h>
|
---|
| 23 | #include <DoubleSpinBox.h>
|
---|
| 24 | #include <SpinBox.h>
|
---|
| 25 | #include <ComboBox.h>
|
---|
| 26 | #include <PushButton.h>
|
---|
| 27 |
|
---|
| 28 | using std::string;
|
---|
| 29 | using namespace flair::core;
|
---|
| 30 | using namespace flair::sensor;
|
---|
| 31 | using namespace flair::gui;
|
---|
| 32 |
|
---|
[15] | 33 | namespace flair {
|
---|
| 34 | namespace actuator {
|
---|
[3] | 35 |
|
---|
[15] | 36 | BlCtrlV2::BlCtrlV2(const IODevice *parent, Layout *layout, string name,
|
---|
| 37 | uint8_t motors_count, I2cPort *i2cport)
|
---|
| 38 | : Bldc(parent, layout, name, motors_count) {
|
---|
| 39 | pimpl_ = new BlCtrlV2_impl(this, layout, i2cport);
|
---|
[3] | 40 | }
|
---|
| 41 |
|
---|
[15] | 42 | BlCtrlV2::~BlCtrlV2() { delete pimpl_; }
|
---|
[3] | 43 |
|
---|
[15] | 44 | BatteryMonitor *BlCtrlV2::GetBatteryMonitor(void) const {
|
---|
| 45 | return pimpl_->battery;
|
---|
[3] | 46 | }
|
---|
| 47 |
|
---|
[15] | 48 | void BlCtrlV2::SetMotors(float *values) { pimpl_->SetMotors(values); }
|
---|
[3] | 49 |
|
---|
| 50 | } // end namespace actuator
|
---|
| 51 | } // end namespace flair
|
---|
Note:
See
TracBrowser
for help on using the repository browser.