Bremen Team - Hangar / SML2

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MotorDriver.h Source File

MotorDriver.h

00001 #ifndef _H_MOTOR_H
00002 #define _H_MOTOR_H
00003 
00004 #include "I2CPeripheral.h"
00005 
00006 class MotorDriver : public I2CPeripheral
00007 {
00008 public:
00009     MotorDriver(I2C &i2c, const uint8_t address, PinName interruptPin);
00010     void setVoltage(float voltage);
00011     MotorDriver& operator=(const float voltage);
00012 
00013 private:
00014     InterruptIn faultLine;
00015 };
00016 
00017 #endif//_H_MOTOR_H