Codestuff
This commit is contained in:
parent
f544ab7822
commit
d8e83400c8
7 changed files with 198 additions and 0 deletions
11
source/Concept/Framework/modules/executor/aktuator.c
Executable file
11
source/Concept/Framework/modules/executor/aktuator.c
Executable file
|
@ -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
|
||||
}
|
27
source/Concept/Framework/modules/executor/aktuator.h
Executable file
27
source/Concept/Framework/modules/executor/aktuator.h
Executable file
|
@ -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
|
Reference in a new issue