Changeset 15 in flair-src for trunk/lib/FlairSensorActuator/src/unexported/AfroBldc_impl.h
- Timestamp:
- 04/08/16 15:40:57 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/unexported/AfroBldc_impl.h
r3 r15 16 16 /*********************************************************************/ 17 17 18 19 18 #ifndef AFROBLDC_IMPL_H 20 19 #define AFROBLDC_IMPL_H … … 25 24 #define MAX_MOTORS 8 26 25 27 namespace 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 } 26 namespace flair { 27 namespace core { 28 class I2cPort; 29 } 30 namespace gui { 31 class SpinBox; 32 class GroupBox; 33 class Layout; 34 } 35 namespace actuator { 36 class AfroBldc; 37 } 38 namespace sensor { 39 class BatteryMonitor; 40 } 47 41 } 48 42 49 class AfroBldc_impl 50 { 51 public:52 AfroBldc_impl(flair::actuator::AfroBldc* self,flair::gui::Layout *layout,flair::core::I2cPort*i2cport);53 54 void SetMotors(float*value);43 class AfroBldc_impl { 44 public: 45 AfroBldc_impl(flair::actuator::AfroBldc *self, flair::gui::Layout *layout, 46 flair::core::I2cPort *i2cport); 47 ~AfroBldc_impl(); 48 void SetMotors(float *value); 55 49 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; 50 private: 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; 61 56 }; 62 57
Note:
See TracChangeset
for help on using the changeset viewer.