diff options
author | masterm <devnull@localhost> | 2007-02-19 23:02:01 +0100 |
---|---|---|
committer | masterm <devnull@localhost> | 2007-02-19 23:02:01 +0100 |
commit | ec2a18e931cdaa6c62a8843c29dc93c4a823a2cd (patch) | |
tree | fc5d5c1891c076091dd4e3734b2675db0c757de3 /source/Concept/Framework/modules/output | |
parent | 42a38959ff5c097463c2c95d993e5934f100d223 (diff) | |
download | rc2007-soccer-ec2a18e931cdaa6c62a8843c29dc93c4a823a2cd.tar rc2007-soccer-ec2a18e931cdaa6c62a8843c29dc93c4a823a2cd.zip |
+++ corrected svn cripplement
Diffstat (limited to 'source/Concept/Framework/modules/output')
-rwxr-xr-x | source/Concept/Framework/modules/output/engine.h | 8 |
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;
|