require 'driving_physics/powertrain' require 'driving_physics/imperial' require 'driving_physics/cli' require 'driving_physics/power' include DrivingPhysics env = Environment.new motor = Motor.new(env) gearbox = Gearbox.new(env) powertrain = Powertrain.new(motor, gearbox) motor.throttle = 1.0 puts env puts powertrain CLI.pause crank_alpha = 0.0 crank_omega = 0.0 axle_alpha = 0.0 axle_omega = 0.0 # Run through the gears 1.upto(6) { |gear| gearbox.gear = gear puts <