require 'driving_physics/powertrain' require 'driving_physics/imperial' require 'driving_physics/cli' include DrivingPhysics env = Environment.new motor = Motor.new(env) gearbox = Gearbox.new(env) powertrain = Powertrain.new(motor, gearbox) 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| powertrain.select_gear(gear) puts <