Re: Re: e.getBearing() returns angles with errors

"Julian Kent" <[email protected]>
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
Either open up the console window by clicking on your robot's name in
the battle display (all the System.out.println() goes there) or you can
open your robots window and enable painting, which lets you display
directly on the battlefield.

Take a look at robowiki.net for implementation details - there are lots
of open source bots which use painting for all sorts of uses.

Hope this helps
Julian (AKA Skilgannon at robowiki)

On Mon, 25 Apr 2011 15:33 +0000, "feistybot99" <[email protected]>
wrote:
> 
> 
> --- In [email protected], "feistybot99" <aprudente_99@...> wrote:
> >
> > Hi
> > 
> > I am relatively new to Robo as well as Java but I have a question:
> > When  I use e.getBearing() the angle returned has a significant error, like around 25 degrees. I thnk its because the the beam width is too wide. Its around 30 deg. So I can't get an accurate fix on the enemy. How can I make the beam width narrower or otherwise get a more accurate bearing?
> > 
> > Another question, how can I print data to the screen or console window? The program seems to ignore out.println 
> > 
> > kind regards,
> > andrew
> >
> 
> Never mind, i found the problem with the angle error. I still have the 
> question about printing out to the screen. Do I have to show the console
> window first? Let me know. 
> 
> regards,
> andrew
> 
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 
> 
-- 
  Julian Kent
  [email protected]

-- 
http://www.fastmail.fm - The way an email service should be



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Robocode/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.