Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2021-09-16 23:27:46 +02:00
parent 9612a064a7
commit afbe2caade

View file

@ -17,10 +17,10 @@ var rolloutStats = [0, 0, 0]; # Number of samples, avg deviation, max deviation
var printRolloutStats = func() var printRolloutStats = func()
{ {
print("Rollout Avg Deviation" ~ sprintf("%.1f", rolloutStats[1]) ~ " meters"); print("Rollout Avg Deviation " ~ sprintf("%.1f", rolloutStats[1]) ~ " meters");
print("Rollout Max Deviation" ~ sprintf("%.1f", rolloutStats[2]) ~ " meters"); print("Rollout Max Deviation " ~ sprintf("%.1f", rolloutStats[2]) ~ " meters");
window.write("Rollout Avg Deviation" ~ sprintf("%.1f", rolloutStats[1]) ~ " meters", 0, 1, 0); window.write("Rollout Avg Deviation " ~ sprintf("%.1f", rolloutStats[1]) ~ " meters", 0, 1, 0);
window.write("Rollout Max Deviation" ~ sprintf("%.1f", rolloutStats[2]) ~ " meters", 0, 1, 0); window.write("Rollout Max Deviation " ~ sprintf("%.1f", rolloutStats[2]) ~ " meters", 0, 1, 0);
}; };
var gndTimer = maketimer(1, func() var gndTimer = maketimer(1, func()