summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/modules/output
diff options
context:
space:
mode:
authormasterm <devnull@localhost>2007-02-19 23:02:01 +0100
committermasterm <devnull@localhost>2007-02-19 23:02:01 +0100
commitec2a18e931cdaa6c62a8843c29dc93c4a823a2cd (patch)
treefc5d5c1891c076091dd4e3734b2675db0c757de3 /source/Concept/Framework/modules/output
parent42a38959ff5c097463c2c95d993e5934f100d223 (diff)
downloadrc2007-soccer-ec2a18e931cdaa6c62a8843c29dc93c4a823a2cd.tar
rc2007-soccer-ec2a18e931cdaa6c62a8843c29dc93c4a823a2cd.zip
+++ corrected svn cripplement
Diffstat (limited to 'source/Concept/Framework/modules/output')
-rwxr-xr-xsource/Concept/Framework/modules/output/engine.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Concept/Framework/modules/output/engine.h b/source/Concept/Framework/modules/output/engine.h
index 7b7a044..4c022bb 100755
--- a/source/Concept/Framework/modules/output/engine.h
+++ b/source/Concept/Framework/modules/output/engine.h
@@ -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;