[Home]History of Radar/Code

Robo Home | Changes | Preferences | AllPages


Revision 2 . . January 13, 2006 0:46 EST by out200-45.sdcoe.net
Revision 1 . . July 7, 2005 2:49 EST by Jokester
  

Difference (from prior major revision) (no other diffs)

Added: 129a130,134
I think that the code for the radar lock only turns the radar to the exact location of the other robot. Then it would not work all the time if the other robot is not moving and occaisionally when the other robot is moving in the same direction as the radar.

setTurnRadarRightRadians(robocode.util.Utils.normalRelativeAngle(absoluteBearingRadians -getRadarHeadingRadians()));

The easiest way to fix it is to add a degree to the radar in the same direction so that it goes past the target a little. -- Kinsen

Robo Home | Changes | Preferences | AllPages
Search: