State all turn penalties in seconds

This commit is contained in:
Patrick Niklaus
2016-08-19 13:51:53 +02:00
committed by Moritz Kobitzsch
parent cb57ccacef
commit 6ff07f4e82
5 changed files with 14 additions and 9 deletions
+2 -1
View File
@@ -4,5 +4,6 @@
require 'testbot'
function turn_function (angle)
return 200*math.abs(angle)/180 -- penalty
-- multiplying by 10 converts to deci-seconds see issue #1318
return 10*20*math.abs(angle)/180
end