source: flair-src/trunk/lib/FlairSensorActuator/src/unexported/AfroBldc_impl.h @ 5

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

sensoractuator

File size: 1.3 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_impl.h
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
19#ifndef AFROBLDC_IMPL_H
20#define AFROBLDC_IMPL_H
21
22#include <stdint.h>
23#include <Object.h>
24
25#define MAX_MOTORS 8
26
27namespace flair
28{
29    namespace core
30    {
31        class I2cPort;
32    }
33    namespace gui
34    {
35        class SpinBox;
36        class GroupBox;
37        class Layout;
38    }
39    namespace actuator
40    {
41        class AfroBldc;
42    }
43    namespace sensor
44    {
45        class BatteryMonitor;
46    }
47}
48
49class AfroBldc_impl
50{
51    public:
52        AfroBldc_impl(flair::actuator::AfroBldc* self,flair::gui::Layout *layout,flair::core::I2cPort* i2cport);
53        ~AfroBldc_impl();
54        void SetMotors(float* value);
55
56    private:
57        void WriteValue(uint16_t value);//I2cPort mutex must be taken before calling this function
58        int nb_mot;
59        flair::core::I2cPort* i2cport;
60        flair::actuator::AfroBldc* self;
61};
62
63#endif // AFROBLDC_IMPL_H
Note: See TracBrowser for help on using the repository browser.