diff options
author | sicarius <devnull@localhost> | 2007-02-22 22:22:02 +0100 |
---|---|---|
committer | sicarius <devnull@localhost> | 2007-02-22 22:22:02 +0100 |
commit | d8e83400c8780fdd04018cd2f59313a3e4533d71 (patch) | |
tree | ef4f81bc5b8286b9ef759b2063de60abefdaa1f9 /source/Concept/Framework/modules/executor | |
parent | f544ab78229d3a4d54b910135ba61bb816009589 (diff) | |
download | rc2007-soccer-d8e83400c8780fdd04018cd2f59313a3e4533d71.tar rc2007-soccer-d8e83400c8780fdd04018cd2f59313a3e4533d71.zip |
Codestuff
Diffstat (limited to 'source/Concept/Framework/modules/executor')
-rwxr-xr-x | source/Concept/Framework/modules/executor/aktuator.c | 11 | ||||
-rwxr-xr-x | source/Concept/Framework/modules/executor/aktuator.h | 27 |
2 files changed, 38 insertions, 0 deletions
diff --git a/source/Concept/Framework/modules/executor/aktuator.c b/source/Concept/Framework/modules/executor/aktuator.c new file mode 100755 index 0000000..51dc331 --- /dev/null +++ b/source/Concept/Framework/modules/executor/aktuator.c @@ -0,0 +1,11 @@ +#include "aktuator.h"
+
+//-----------------------------------------------------------------------------
+void Aktuator::Kick()
+{
+ (parent->GetModule<Kicker>(IO_KICKER_MAIN))->SetEnabled(true);//aktivate kicker
+ (parent->GetModule<Dribbler>(IO_DRIBBLER_MAIN))->SetSpeed(-1);//aktivate dribbler reverse
+ msleep(10);//wait 100us
+ (parent->GetModule<Kicker>(IO_KICKER_MAIN))->SetEnabled(false);//deaktivate kicker
+ (parent->GetModule<Dribbler>(IO_DRIBBLER_MAIN))->SetSpeed(1);//deaktivate dribbler reverse
+}
diff --git a/source/Concept/Framework/modules/executor/aktuator.h b/source/Concept/Framework/modules/executor/aktuator.h new file mode 100755 index 0000000..9dc8684 --- /dev/null +++ b/source/Concept/Framework/modules/executor/aktuator.h @@ -0,0 +1,27 @@ +#ifndef _AKTUATOR_H
+#define _AKTUATOR_H
+
+#include "../../stdafx.h"
+
+class Aktuator : public IO_Module
+{
+public:
+ Aktuator()
+ {
+ this->parent = NULL;
+ this->moduleId = 0;
+ }
+
+ Aktuator(uint32 aktuatorId)
+ {
+ this->parent = NULL;
+ this->moduleId = aktuatorId;
+ }
+
+protected:
+
+public:
+ void Kick();
+};
+
+#endif |