source: flair-src/branches/mavlink/lib/FlairSensorActuator/src/unexported/AfroBldc_impl.h @ 46

Last change on this file since 46 was 15, checked in by Bayard Gildas, 6 years ago

sources reformatted with flair-format-dir script

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