Changeset 15 in flair-src for trunk/lib/FlairSensorActuator/src/unexported/XBldc_impl.h
- Timestamp:
- 04/08/16 15:40:57 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/unexported/XBldc_impl.h
r3 r15 16 16 /*********************************************************************/ 17 17 18 19 18 #ifndef XBLDC_IMPL_H 20 19 #define XBLDC_IMPL_H … … 23 22 #include <stdint.h> 24 23 25 namespace flair 26 { 27 namespace core 28 { 29 class I2cPort; 30 } 31 namespace actuator 32 { 33 class XBldc; 34 } 24 namespace flair { 25 namespace core { 26 class I2cPort; 27 } 28 namespace actuator { 29 class XBldc; 30 } 35 31 } 36 32 33 class XBldc_impl { 37 34 38 class XBldc_impl 39 { 35 public: 36 XBldc_impl(flair::actuator::XBldc *self, flair::core::I2cPort *i2cport); 37 ~XBldc_impl(); 38 void UpdateFrom(flair::core::io_data *data); 39 void SetMotors(float *value); 40 40 41 public: 42 XBldc_impl(flair::actuator::XBldc* self,flair::core::I2cPort* i2cport); 43 ~XBldc_impl(); 44 void UpdateFrom(flair::core::io_data *data); 45 void SetMotors(float* value); 46 47 private: 48 uint8_t Sat(float value,uint8_t min,uint8_t max); 49 //void StartTest(uint8_t moteur); 50 void ChangeDirection(uint8_t moteur); 51 void ChangeAdress(uint8_t old_add,uint8_t new_add); 52 flair::actuator::XBldc* self; 53 flair::core::I2cPort* i2cport; 41 private: 42 uint8_t Sat(float value, uint8_t min, uint8_t max); 43 // void StartTest(uint8_t moteur); 44 void ChangeDirection(uint8_t moteur); 45 void ChangeAdress(uint8_t old_add, uint8_t new_add); 46 flair::actuator::XBldc *self; 47 flair::core::I2cPort *i2cport; 54 48 }; 55 49
Note:
See TracChangeset
for help on using the changeset viewer.