source: flair-src/trunk/lib/FlairSensorActuator/src/AfroBldc.cpp @ 4

Last change on this file since 4 was 3, checked in by Sanahuja Guillaume, 6 years ago

sensoractuator

File size: 1.1 KB
Line 
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:    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
27using std::string;
28using namespace flair::core;
29using namespace flair::sensor;
30using namespace flair::gui;
31
32namespace flair { namespace actuator {
33
34AfroBldc::AfroBldc(const IODevice* parent,Layout* layout,string name,uint8_t motors_count,I2cPort* i2cport) : Bldc(parent,layout,name,motors_count) {
35    pimpl_=new AfroBldc_impl(this,layout,i2cport);
36}
37
38AfroBldc::~AfroBldc() {
39    delete pimpl_;
40}
41
42void AfroBldc::SetMotors(float* values) {
43    pimpl_->SetMotors(values);
44}
45
46} // end namespace actuator
47} // end namespace flair
Note: See TracBrowser for help on using the repository browser.