alhamdulillah...
it's the eve of the new year 2012...
so many things happened in the 2011...
lost of loved ones...
adapting to new environment without the presence of the loved ones...
preparing for own wedding...
my wedding to my beloved zila...
hence lots of ups and downs...
nevertheless...
i managed to overcome all the obstacles and tests...
with the full support of my wife, hazila abdullah...
thank you so much darling...
love you so much...
hope with the coming of 2012, we'll get more prosperous...
and insyaAllah more sustenances in many ways...
adios 2011 and welcome 2012...
\\...kami dedikasikan blog ini untuk aktiviti jalan - jalan dan makan - makan...serta aktiviti menarik yang lain...//
Saturday, December 31, 2011
Friday, December 23, 2011
final day and 2nd prize
Alhamdulillah...
we completed the robot soccer programming course...
and for the closing program, we had simulation competition between the participants...
PKT won the 2nd prize for the Robot Soccer Simulation Competition...
1st prize won by the PSMZA
PSAS got the 3rd place...
Thursday, December 22, 2011
4th day
our strategy so far...
void MainStrategy(Environment * env)
{
double distance, bx, by, rx4, ry4, rx3, ry3, rx2, ry2, rx1, ry1, rx0, ry0, cx, cy, dx, dy, ex, ey;
int state;
bx = env->currentBall.pos.x;
by = env->currentBall.pos.y;
rx4 = env->home[4].pos.x;
ry4 = env->home[4].pos.x;
rx3 = env->home[3].pos.x;
ry3 = env->home[3].pos.x;
rx2 = env->home[2].pos.x;
ry2 = env->home[2].pos.x;
rx1 = env->home[1].pos.x;
ry1 = env->home[1].pos.x;
rx0 = env->home[0].pos.x;
ry0 = env->home[0].pos.x;
distance = GetDistanceTo(4,env,bx,by);
cx = (FRIGHTX-MIDDLEX)/2;//right
cy = (MIDDLEY+20);//Upper
dy = (MIDDLEY-20);//Lower
dx =((MIDDLEX-FLEFTX)/2);//left
ex = MIDDLEX;
ey = MIDDLEY;
//Defender3(2,env);
//Defender2(1,env);
if (distance <10)
{
state = 0;
}
else
{
state = 1;
}
switch (state)
{
case 0:
{
Striker4(4,env);
CoStriker1(3,env);
break;
}
case 1:
{
Striker4(3,env);
CoStriker1(4,env);
break;
}
}
if ((bx>MIDDLEX)&&(by>MIDDLEY))
{
MerlinPosition(&env->home[4],env->currentBall.pos.x,env->currentBall.pos.y,1);
MerlinPosition(&env->home[3],ex, ey, 1.5);
}
if ((bx>MIDDLEX)&&(by<MIDDLEY))
{
MerlinPosition(&env->home[3],env->currentBall.pos.x,env->currentBall.pos.y,1);
MerlinPosition(&env->home[1],ex, ey, 1.5);
}
}
void MainStrategy(Environment * env)
{
double distance, bx, by, rx4, ry4, rx3, ry3, rx2, ry2, rx1, ry1, rx0, ry0, cx, cy, dx, dy, ex, ey;
int state;
bx = env->currentBall.pos.x;
by = env->currentBall.pos.y;
rx4 = env->home[4].pos.x;
ry4 = env->home[4].pos.x;
rx3 = env->home[3].pos.x;
ry3 = env->home[3].pos.x;
rx2 = env->home[2].pos.x;
ry2 = env->home[2].pos.x;
rx1 = env->home[1].pos.x;
ry1 = env->home[1].pos.x;
rx0 = env->home[0].pos.x;
ry0 = env->home[0].pos.x;
distance = GetDistanceTo(4,env,bx,by);
cx = (FRIGHTX-MIDDLEX)/2;//right
cy = (MIDDLEY+20);//Upper
dy = (MIDDLEY-20);//Lower
dx =((MIDDLEX-FLEFTX)/2);//left
ex = MIDDLEX;
ey = MIDDLEY;
//Defender3(2,env);
//Defender2(1,env);
if (distance <10)
{
state = 0;
}
else
{
state = 1;
}
switch (state)
{
case 0:
{
Striker4(4,env);
CoStriker1(3,env);
break;
}
case 1:
{
Striker4(3,env);
CoStriker1(4,env);
break;
}
}
if ((bx>MIDDLEX)&&(by>MIDDLEY))
{
MerlinPosition(&env->home[4],env->currentBall.pos.x,env->currentBall.pos.y,1);
MerlinPosition(&env->home[3],ex, ey, 1.5);
}
if ((bx>MIDDLEX)&&(by<MIDDLEY))
{
MerlinPosition(&env->home[3],env->currentBall.pos.x,env->currentBall.pos.y,1);
MerlinPosition(&env->home[1],ex, ey, 1.5);
}
}
Wednesday, December 21, 2011
3rd day
huhu...
30 minutes late...
supposedly 8.30 am, however i entered the class at 9.00 am...
but, it's ok...
today's lesson is about the theory of artificial intelligence...
interesting topic but not so interesting speaker...
hmmm...
30 minutes late...
supposedly 8.30 am, however i entered the class at 9.00 am...
but, it's ok...
today's lesson is about the theory of artificial intelligence...
interesting topic but not so interesting speaker...
hmmm...
Tuesday, December 20, 2011
2nd day
started a new day with another program...
ballchaser...
striker...
co-striker...
defender...
goalie...
ballchaser...
striker...
co-striker...
defender...
goalie...
Monday, December 19, 2011
advance robot soccer strategy programming
PID...
Kp...
Ki...
Kd...
Ku....
C++...
to be continued
Kp...
Ki...
Kd...
Ku....
C++...
to be continued
Tuesday, December 13, 2011
131211
alhamdulillah...
it's another day and i'm still breathing...
13th dcember 2011...
another nice number...
gud news to chelsea fan...
they beat manchester city with 2-1 scoreline...
finally a defeat to manchester city....
ending an undefeated run...
and of course a relief and a happy news to manchester united fan...
also my wife is going to a team-building course starting today...
till this thursday...
go go go darling...
have a safe trip...
it's another day and i'm still breathing...
13th dcember 2011...
another nice number...
gud news to chelsea fan...
they beat manchester city with 2-1 scoreline...
finally a defeat to manchester city....
ending an undefeated run...
and of course a relief and a happy news to manchester united fan...
also my wife is going to a team-building course starting today...
till this thursday...
go go go darling...
have a safe trip...
Monday, December 12, 2011
Wednesday, December 7, 2011
mission accomplished
after 3 days of drawing and editing...
i managed to complete the layout for our classrooms...
mission accomplished...
this is one of the results...
hope this will help and be convenient to others...
BKD Layout
Thursday, December 1, 2011
01122011
it's a new day, new month...
so many tasks to be settled...
with the result processing...
5S activities...
courses...
O Allah...
lease give me strength...
please give me endurance...
please give me patience...
to face all these...
so many tasks to be settled...
with the result processing...
5S activities...
courses...
O Allah...
lease give me strength...
please give me endurance...
please give me patience...
to face all these...
Subscribe to:
Posts (Atom)