Last change
on this file since 281 was 268, checked in by Sanahuja Guillaume, 6 years ago |
add defines for architectures to speed up compile time
|
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 | /*********************************************************************/
|
---|
[268] | 17 | #ifdef ARMV7A
|
---|
[3] | 18 |
|
---|
| 19 | #include "BlCtrlV2.h"
|
---|
| 20 | #include "BlCtrlV2_impl.h"
|
---|
| 21 | #include "BatteryMonitor.h"
|
---|
| 22 | #include <GroupBox.h>
|
---|
| 23 | #include <Layout.h>
|
---|
| 24 | #include <DoubleSpinBox.h>
|
---|
| 25 | #include <SpinBox.h>
|
---|
| 26 | #include <ComboBox.h>
|
---|
| 27 | #include <PushButton.h>
|
---|
| 28 |
|
---|
| 29 | using std::string;
|
---|
| 30 | using namespace flair::core;
|
---|
| 31 | using namespace flair::sensor;
|
---|
| 32 | using namespace flair::gui;
|
---|
| 33 |
|
---|
[15] | 34 | namespace flair {
|
---|
| 35 | namespace actuator {
|
---|
[3] | 36 |
|
---|
[15] | 37 | BlCtrlV2::BlCtrlV2(const IODevice *parent, Layout *layout, string name,
|
---|
| 38 | uint8_t motors_count, I2cPort *i2cport)
|
---|
| 39 | : Bldc(parent, layout, name, motors_count) {
|
---|
| 40 | pimpl_ = new BlCtrlV2_impl(this, layout, i2cport);
|
---|
[157] | 41 |
|
---|
| 42 | SetIsReady(true);
|
---|
[3] | 43 | }
|
---|
| 44 |
|
---|
[15] | 45 | BlCtrlV2::~BlCtrlV2() { delete pimpl_; }
|
---|
[3] | 46 |
|
---|
[15] | 47 | BatteryMonitor *BlCtrlV2::GetBatteryMonitor(void) const {
|
---|
| 48 | return pimpl_->battery;
|
---|
[3] | 49 | }
|
---|
| 50 |
|
---|
[15] | 51 | void BlCtrlV2::SetMotors(float *values) { pimpl_->SetMotors(values); }
|
---|
[3] | 52 |
|
---|
| 53 | } // end namespace actuator
|
---|
| 54 | } // end namespace flair
|
---|
[268] | 55 |
|
---|
| 56 | #endif |
---|
Note:
See
TracBrowser
for help on using the repository browser.