+++ improved navigator
This commit is contained in:
parent
c3ce4e7069
commit
354ef5f0d0
7 changed files with 254 additions and 126 deletions
|
@ -68,7 +68,7 @@ void Ball_Tracker::Update()
|
|||
mainDirection = 33.0f * PI / 18.0f;
|
||||
break;
|
||||
default:
|
||||
mainDirection = -1.0f;
|
||||
mainDirection = EMPTY_FLOAT;
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ void Ball_Tracker::Update()
|
|||
secondDirection = 33.0f * PI / 18.0f;
|
||||
break;
|
||||
default:
|
||||
secondDirection = -1.0f;
|
||||
secondDirection = EMPTY_FLOAT;
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
@ -120,6 +120,6 @@ void Ball_Tracker::Update()
|
|||
}
|
||||
else
|
||||
{
|
||||
direction = -1.0f;
|
||||
direction = EMPTY_FLOAT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,14 +10,14 @@ public:
|
|||
{
|
||||
this->parent = NULL;
|
||||
this->moduleId = 0;
|
||||
this->direction = -1.0f;
|
||||
this->direction = EMPTY_FLOAT;
|
||||
}
|
||||
|
||||
Ball_Tracker(uint32 trackerId)
|
||||
{
|
||||
this->parent = NULL;
|
||||
this->moduleId = trackerId;
|
||||
this->direction = -1.0f;
|
||||
this->direction = EMPTY_FLOAT;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
Reference in a new issue