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

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

add defines for architectures to speed up compile time

File size: 1.2 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#ifdef ARMV7A
18
19#include "AfroBldc.h"
20#include "AfroBldc_impl.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
28using std::string;
29using namespace flair::core;
30using namespace flair::sensor;
31using namespace flair::gui;
32
33namespace flair {
34namespace actuator {
35
36AfroBldc::AfroBldc(const IODevice *parent, Layout *layout, string name,
37 uint8_t motors_count, I2cPort *i2cport)
38 : Bldc(parent, layout, name, motors_count) {
39 pimpl_ = new AfroBldc_impl(this, layout, i2cport);
40
41 SetIsReady(true);
42}
43
44AfroBldc::~AfroBldc() { delete pimpl_; }
45
46void AfroBldc::SetMotors(float *values) { pimpl_->SetMotors(values); }
47
48} // end namespace actuator
49} // end namespace flair
50
51#endif
Note: See TracBrowser for help on using the repository browser.