Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
MotorDriver.h@12:1632d7391453, 2015-03-13 (annotated)
- Committer:
- pvaibhav
- Date:
- Fri Mar 13 09:12:56 2015 +0000
- Revision:
- 12:1632d7391453
- Parent:
- 0:943820483318
- Child:
- 18:f51b1a94a6e2
Code reformatting
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pvaibhav | 0:943820483318 | 1 | #ifndef _H_MOTOR_H |
pvaibhav | 0:943820483318 | 2 | #define _H_MOTOR_H |
pvaibhav | 0:943820483318 | 3 | |
pvaibhav | 0:943820483318 | 4 | #include "I2CPeripheral.h" |
pvaibhav | 0:943820483318 | 5 | |
pvaibhav | 12:1632d7391453 | 6 | class MotorDriver : public I2CPeripheral |
pvaibhav | 12:1632d7391453 | 7 | { |
pvaibhav | 0:943820483318 | 8 | public: |
pvaibhav | 0:943820483318 | 9 | MotorDriver(I2C &i2c, const uint8_t address); |
pvaibhav | 0:943820483318 | 10 | void setVoltage(const float voltage); |
pvaibhav | 0:943820483318 | 11 | MotorDriver& operator=(const float voltage); |
pvaibhav | 0:943820483318 | 12 | }; |
pvaibhav | 0:943820483318 | 13 | |
pvaibhav | 0:943820483318 | 14 | #endif//_H_MOTOR_H |