1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 01:56:14 +01:00

remove virtual

This commit is contained in:
Harald Barth 2021-11-22 04:01:48 +01:00
parent 82df3a21dc
commit ed2aa4c1d8

View File

@ -52,25 +52,12 @@ class MotorDriver {
public: public:
MotorDriver(byte power_pin, byte signal_pin, byte signal_pin2, int8_t brake_pin, MotorDriver(byte power_pin, byte signal_pin, byte signal_pin2, int8_t brake_pin,
byte current_pin, float senseFactor, unsigned int tripMilliamps, byte faultPin); byte current_pin, float senseFactor, unsigned int tripMilliamps, byte faultPin);
virtual void setPower( bool on); void setPower( bool on);
void setSignal( bool high);/* { void setSignal( bool high);
if (usePWM) { void setBrake( bool on);
DCCTimer::setPWM(signalPin,high); int getCurrentRaw();
} unsigned int raw2mA( int raw);
int mA2raw( unsigned int mA);
if (high) {
setHIGH(fastSignalPin);
if (dualSignal) setLOW(fastSignalPin2);
}
else {
setLOW(fastSignalPin);
if (dualSignal) setHIGH(fastSignalPin2);
}
};*/
virtual void setBrake( bool on);
virtual int getCurrentRaw();
virtual unsigned int raw2mA( int raw);
virtual int mA2raw( unsigned int mA);
inline int getRawCurrentTripValue() { inline int getRawCurrentTripValue() {
return rawCurrentTripValue; return rawCurrentTripValue;
} }