compute turn penalties in lua profiles
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- Testbot, with turn penalty
|
||||
-- Used for testing turn penalties
|
||||
|
||||
require 'testbot'
|
||||
|
||||
function turn_function (angle)
|
||||
return 200*math.abs(angle)/180 -- penalty
|
||||
end
|
||||
Reference in New Issue
Block a user