Handle variable turn according to SD2 #23
Note, that in Speed Dreams 2 is variable turn in reality just composite
This solution is simple "brute force" where original segment is split into several "ordinary" with fixed radius.
There is extra test now for all tracks in subdirectory. The result is:
There now also extra assert which will fail on
So for Espie circuit I get:
and for Corkscrew
So, it is down to 1cm accuracy.
Do you want to merge anyway or do you want to try to get better?
May I suggest another way? It is also (5) for #3 if anyone is keeping count
I would merge it (I will rebase it now). As my colleague says "Perfect is the enemy of good" - there are many other issues (two more branches to merge now) and final Roborace will use different simulator and also probably different track description.
Note, that at the moment is the worst circuilt is Forza:
but it is still only 14cm, so I would ignore it for now. Corkscrew was fixed with variable
is currently the worst, but still I would move forward.
I added extra commit with the arc formula - it is actually simple geometric average and multiplication with dlen was useless (I was wandering why +/- 1 did not matter ... it canceled each other out). So still the same behavior but cleaner, I hope ;).
Please confirm the rebase operation and let's move on ...
Note, that in Speed Dreams 2 is variable turn in reality just composite of several turns with fixed radius. The length step is used from the parameter "profil steps length". There is now test for all tracks defined by subdir containing XML files. Variable profil_steps_length per segment is also supported.