Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ballast table for UF1 (not used because first race)
- 5% -> 30 kg
- 4% -> 24 kg
- 3% -> 18 kg
- 2% -> 12 kg
- 1% -> 6 kg
- Ballast table for LX4
- 5% -> 24 kg
- 4% -> 19 kg
- 3% -> 14 kg
- 2% -> 9 kg
- 1% -> 4 kg
- Ballast table for RAC
- 10% -> 80kg
- 9% -> 72kg
- 8% -> 64kg
- 7% -> 56kg
- 6% -> 48kg
- 5% -> 40kg
- 4% -> 32kg
- 3% -> 24kg
- 2% -> 16kg
- 1% -> 8kg
- Ballast table for LX6
- 15% -> 80kg
- 14% -> 75kg
- 13% -> 70kg
- 12% -> 64kg
- 11% -> 59kg
- 10% -> 53kg
- 9% -> 48kg
- 8% -> 43kg
- 7% -> 37kg
- 6% -> 32kg
- 5% -> 26kg
- 4% -> 21kg
- 3% -> 16kg
- 2% -> 10kg
- 1% -> 5kg
- function calculateBallast (carMass, carPower, percent)
- powerWeightRatio = carMass/carPower
- newPowerWeightRatio = powerWeightRatio * (1+(percent/100))
- newCarMass = newPowerWeightRatio * carPower
- ballast = newCarMass - carMass
- return math.floor(ballast)
- end
- io.write ("Ballast table for UF1 (not used because first race)\n")
- for i=5,1,-1 do
- io.write(i,"% -> ", calculateBallast (600 ,55, i), " kg\n")
- end
- io.write ("Ballast table for LX4 \n")
- for i=5,1,-1 do
- io.write(i,"% -> ", calculateBallast (499 ,140, i), " kg\n")
- end
- io.write ("Ballast table for RAC \n")
- for i=10,1,-1 do
- io.write(i,"% -> ",calculateBallast (800 ,245 , i), "kg\n")
- end
- io.write ("Ballast table for LX6 \n")
- for i=15,1,-1 do
- io.write(i,"% -> ",calculateBallast (539 ,190 , i), "kg\n")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement