phucktdt / eggbotcode

Automatically exported from code.google.com/p/eggbotcode
1 stars 0 forks source link

Manual moves above 1000 steps/s fail. #81

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Manual moves above 1000 steps/s fail.

Bad code:
 nTime = int( math.ceil( 1000 / self.fSpeed * distance( self.nDeltaX, self.nDeltaY )))

Replace with:
 nTime = 10000.00 / self.fSpeed * distance( nDeltaX, nDeltaY )
 nTime = int( math.ceil(nTime / 10.0))

Original issue reported on code.google.com by windell@oskay.net on 13 May 2014 at 8:11

GoogleCodeExporter commented 8 years ago
Re-opened as: https://github.com/evil-mad/EggBot/issues/10

Original comment by windell@oskay.net on 15 Dec 2014 at 10:33