[Home]History of BulletETA

Robo Home | Changes | Preferences | AllPages


Revision 11 . . May 31, 2004 15:10 EST by Vic Stewart
Revision 10 . . May 31, 2004 14:17 EST by Mue
  

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

Changed: 50c50,57
Well, if you measure the time until you wave hits, i'm not surprised you can calculate the exact ATA :-), since you youself wrote the code that advances the wave. I was actually talking about the time of the corresponding onBulletHit?-event... --Mue
Well, if you measure the time until you wave hits, i'm not surprised you can calculate the exact ATA :-), since you youself wrote the code that advances the wave. I was actually talking about the time of the corresponding onBulletHit?-event... --Mue

I did not write the above paragraph to surprise anyone with my brilliant ATA calculation, but rather to help newbies or the mathematically challenged like myself not to make these mistakes :-) It's actually very easy to make mistakes in both calculating ETA and measuring ATA. In the ETA case I found I was simply using ETA = D / V. I would not be surprised if a lot of people actually do that.

In the ATA case, I had misaligned my waves by advancing the bullet immediately by the robot radius (=18), instead of 20-3*Power. That radius thing was something I read about on this Wiki a long time ago. After correcting this I could visually confirm (using RobocodeGLV014) that the waves were perfectly aligned with the actual bullet.


You are right aligning to an onBulletHit? event is a different story. That's why I couldn't reproduce that bug you mentioned. If I recall correctly, I also had problems with aligning onBulletHit? events with my previous bot Ender.

--Vic

Robo Home | Changes | Preferences | AllPages
Search: