Last change
on this file since 4 was 3, checked in by Sanahuja Guillaume, 8 years ago |
sensoractuator
|
File size:
983 bytes
|
Rev | Line | |
---|
[3] | 1 | // %flair:license{
|
---|
| 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
| 4 | // %flair:license}
|
---|
| 5 | // created: 2013/12/19
|
---|
| 6 | // filename: ParrotBldc.cpp
|
---|
| 7 | //
|
---|
| 8 | // author: Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: objet integrant les moteurs ardrone
|
---|
| 14 | //
|
---|
| 15 | //
|
---|
| 16 | /*********************************************************************/
|
---|
| 17 |
|
---|
| 18 | #include "ParrotBldc.h"
|
---|
| 19 | #include "ParrotBldc_impl.h"
|
---|
| 20 |
|
---|
| 21 | using std::string;
|
---|
| 22 | using namespace flair::core;
|
---|
| 23 | using namespace flair::gui;
|
---|
| 24 |
|
---|
| 25 | namespace flair
|
---|
| 26 | {
|
---|
| 27 | namespace actuator
|
---|
| 28 | {
|
---|
| 29 |
|
---|
| 30 | ParrotBldc::ParrotBldc(const IODevice* parent,Layout* layout,string name,SerialPort* serialport) : Bldc(parent,layout,name,4)
|
---|
| 31 | {
|
---|
| 32 | pimpl_=new ParrotBldc_impl(this,serialport);
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | ParrotBldc::~ParrotBldc()
|
---|
| 36 | {
|
---|
| 37 | delete pimpl_;
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | void ParrotBldc::SetMotors(float* value)
|
---|
| 41 | {
|
---|
| 42 | pimpl_->SetMotors(value);
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | } // end namespace actuator
|
---|
| 46 | } // end namespace flair
|
---|
Note:
See
TracBrowser
for help on using the repository browser.