source: flair-src/trunk/lib/FlairSensorActuator/src/unexported/Bldc_impl.h@ 4

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

sensoractuator

File size: 1.8 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: 2013/11/14
6// filename: Bldc_impl.h
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: Virtual class for brushless drivers
14//
15//
16/*********************************************************************/
17
18#ifndef BLDC_IMPL_H
19#define BLDC_IMPL_H
20
21#include <IODevice.h>
22#include <stdint.h>
23
24namespace flair
25{
26 namespace gui
27 {
28 class DoubleSpinBox;
29 class Layout;
30 class Label;
31 class DataPlot1D;
32 class TabWidget;
33 class PushButton;
34 }
35 namespace actuator
36 {
37 class Bldc;
38 }
39}
40
41class Bldc_impl
42{
43 public:
44 Bldc_impl(flair::actuator::Bldc* self,flair::gui::Layout* layout,std::string name,uint8_t motors_count);
45 Bldc_impl(flair::actuator::Bldc* self,uint8_t motors_count);//simulation
46 ~Bldc_impl();
47 void UpdateFrom(const flair::core::io_data *data);
48 void LockUserInterface(void) const;
49 void UnlockUserInterface(void) const;
50 bool are_enabled;
51 float* power;
52 void UseDefaultPlot(flair::gui::TabWidget* tab);
53 uint8_t motors_count;
54 flair::gui::Layout* layout;
55
56 private:
57 float *values;
58 float Sat(float value);
59 flair::actuator::Bldc* self;
60 flair::gui::DoubleSpinBox *min_value,*max_value,*test_value;
61 flair::gui::Label *flight_time;
62 flair::gui::DataPlot1D *plots;
63 flair::core::Time flight_start_time;
64 flair::gui::PushButton **button_test;
65 int time_sec;
66 bool is_running;
67 flair::core::Time test_start_time;
68 int tested_motor;//=-1 if no motor is tested
69};
70
71#endif // BLDC_IMPL_H
Note: See TracBrowser for help on using the repository browser.