Codestuff

This commit is contained in:
sicarius 2007-02-22 21:22:02 +00:00
parent f544ab7822
commit d8e83400c8
7 changed files with 198 additions and 0 deletions

View 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
}

View 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