From d8e83400c8780fdd04018cd2f59313a3e4533d71 Mon Sep 17 00:00:00 2001 From: sicarius Date: Thu, 22 Feb 2007 21:22:02 +0000 Subject: Codestuff --- .../Concept/Framework/modules/executor/aktuator.c | 11 +++++++++ .../Concept/Framework/modules/executor/aktuator.h | 27 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100755 source/Concept/Framework/modules/executor/aktuator.c create mode 100755 source/Concept/Framework/modules/executor/aktuator.h (limited to 'source/Concept/Framework/modules/executor') 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(IO_KICKER_MAIN))->SetEnabled(true);//aktivate kicker + (parent->GetModule(IO_DRIBBLER_MAIN))->SetSpeed(-1);//aktivate dribbler reverse + msleep(10);//wait 100us + (parent->GetModule(IO_KICKER_MAIN))->SetEnabled(false);//deaktivate kicker + (parent->GetModule(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 -- cgit v1.2.3