Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Committer:
pvaibhav
Date:
Mon May 04 15:16:57 2015 +0000
Revision:
32:d37447aec6b4
Parent:
18:f51b1a94a6e2
Child:
46:fd5a62296b12
Interrupt lines added to all sensors and motor driver, power aware I2C subclass added (currently doesn't do anything)

Who changed what in which revision?

UserRevisionLine numberNew 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 32:d37447aec6b4 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