Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
MotorDriver.h@46:fd5a62296b12, 2015-05-27 (annotated)
- Committer:
- pvaibhav
- Date:
- Wed May 27 13:01:43 2015 +0000
- Revision:
- 46:fd5a62296b12
- Parent:
- 32:d37447aec6b4
Code reformatted
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 | 32:d37447aec6b4 | 9 | MotorDriver(I2C &i2c, const uint8_t address, PinName interruptPin); |
pvaibhav | 18:f51b1a94a6e2 | 10 | void setVoltage(float voltage); |
pvaibhav | 0:943820483318 | 11 | MotorDriver& operator=(const float voltage); |
pvaibhav | 46:fd5a62296b12 | 12 | |
pvaibhav | 32:d37447aec6b4 | 13 | private: |
pvaibhav | 32:d37447aec6b4 | 14 | InterruptIn faultLine; |
pvaibhav | 0:943820483318 | 15 | }; |
pvaibhav | 0:943820483318 | 16 | |
pvaibhav | 0:943820483318 | 17 | #endif//_H_MOTOR_H |