mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
remove virtual
This commit is contained in:
parent
82df3a21dc
commit
ed2aa4c1d8
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user