+++ corrected svn cripplement
This commit is contained in:
parent
42a38959ff
commit
ec2a18e931
8 changed files with 40 additions and 405 deletions
|
@ -58,7 +58,7 @@ public:
|
|||
|
||||
protected:
|
||||
bool enabled;
|
||||
int curSpeed;
|
||||
int16 curSpeed;
|
||||
|
||||
//Hardware
|
||||
volatile uint8* hardwarePort;
|
||||
|
@ -94,16 +94,16 @@ protected:
|
|||
}
|
||||
|
||||
public:
|
||||
int GetSpeed()
|
||||
int16 GetSpeed()
|
||||
{
|
||||
return curSpeed;
|
||||
}
|
||||
|
||||
void SetSpeed(int newSpeed)
|
||||
void SetSpeed(int16 newSpeed)
|
||||
{
|
||||
curSpeed = newSpeed;
|
||||
|
||||
int pwm = abs(newSpeed);
|
||||
uint16 pwm = abs(newSpeed);
|
||||
if(pwm > 255) pwm = 255;
|
||||
|
||||
*pwmSpeed = pwm;
|
||||
|
|
Reference in a new issue