Difference between revisions of "User talk:Positive/Optimal Velocity"

From Robowiki
Jump to navigation Jump to search
(Small update necessary)
(yep, fixed)
Line 2: Line 2:
  
 
: Great! Please replace 8.0 in the getNewVelocity function with currentCommands.getMaxVelocity(), and it should work I believe (I temporarily set it to 8.0, because I am not using the currentCommands class). :) --[[User:Positive|Positive]] 20:26, 15 July 2009 (UTC)
 
: Great! Please replace 8.0 in the getNewVelocity function with currentCommands.getMaxVelocity(), and it should work I believe (I temporarily set it to 8.0, because I am not using the currentCommands class). :) --[[User:Positive|Positive]] 20:26, 15 July 2009 (UTC)
 +
 +
:: ok, that fixed it.  Nice work!  --[[User:Darkcanuck|Darkcanuck]] 20:33, 15 July 2009 (UTC)

Revision as of 21:33, 15 July 2009

Your version passes all of my tests (so far) except that it doesn't take into account the maximum velocity set by the bot. Nice catch on the updateMovement() routine, that should get fixed too (my tests assume that behaviour already). --Darkcanuck 20:21, 15 July 2009 (UTC)

Great! Please replace 8.0 in the getNewVelocity function with currentCommands.getMaxVelocity(), and it should work I believe (I temporarily set it to 8.0, because I am not using the currentCommands class). :) --Positive 20:26, 15 July 2009 (UTC)
ok, that fixed it. Nice work! --Darkcanuck 20:33, 15 July 2009 (UTC)