Пример #1
0
fixed
TeamCode::GetRange() const
{
  // Get last three values from teamcode (3-5)
  int val = GetValueFromTeamCode(&code[2], 3);
  return fixed(val * 100);
}
Пример #2
0
Angle
TeamCode::GetBearing() const
{
  // Get the first two values from teamcode (1-2)
  int val = GetValueFromTeamCode(code, 2);

  // Calculate bearing
  return Angle::Degrees(fixed(val * 360.0 / TEAMCODE_COMBINATIONS)).AsBearing();
}
Пример #3
0
double GetBearing(TCHAR *code )
{		
	int val = GetValueFromTeamCode(code, 2);
	
	double bearing = (val * 360.0/TEAMCODE_COMBINAIONS);
	 bearing -= 0;
	if (bearing < 0)
	{
		bearing += 360;
	}

	return bearing;
}
Пример #4
0
double GetRange(TCHAR *code )
{
	int val = GetValueFromTeamCode(&code[2], 3);
	return val*100.0;
}