1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

Virtual motor driver functions

This commit is contained in:
Asbelos 2020-08-23 22:04:57 +01:00
parent b225ffb9f3
commit 234e5f0d15

View File

@ -23,11 +23,11 @@
class MotorDriver {
public:
MotorDriver(byte power_pin, byte signal_pin, byte signal_pin2, byte brake_pin, byte current_pin, float senseFactor, unsigned int tripMilliamps, byte faultPin);
void setPower( bool on);
void setSignal( bool high);
void setBrake( bool on);
int getCurrentRaw();
unsigned int convertToMilliamps( int rawValue);
virtual void setPower( bool on);
virtual void setSignal( bool high);
virtual void setBrake( bool on);
virtual int getCurrentRaw();
virtual unsigned int convertToMilliamps( int rawValue);
byte powerPin, signalPin, signalPin2, brakePin,currentPin,faultPin;
float senseFactor;