summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/modules/executor/aktuator.c
blob: 51dc3313fd8bb1ff6d5cd98d49091d0011c122d4 (plain)
1
2
3
4
5
6
7
8
9
10
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			
}