Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
MotorDriver.h@0:943820483318, 2015-01-13 (annotated)
- Committer:
- pvaibhav
- Date:
- Tue Jan 13 11:23:01 2015 +0000
- Revision:
- 0:943820483318
- Child:
- 12:1632d7391453
Initial commit with working LED and motor drivers.
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 | 0:943820483318 | 6 | class MotorDriver : public I2CPeripheral { |
pvaibhav | 0:943820483318 | 7 | public: |
pvaibhav | 0:943820483318 | 8 | MotorDriver(I2C &i2c, const uint8_t address); |
pvaibhav | 0:943820483318 | 9 | void setVoltage(const float voltage); |
pvaibhav | 0:943820483318 | 10 | MotorDriver& operator=(const float voltage); |
pvaibhav | 0:943820483318 | 11 | }; |
pvaibhav | 0:943820483318 | 12 | |
pvaibhav | 0:943820483318 | 13 | #endif//_H_MOTOR_H |