kRPC: Control the game using C#, C++, Java, Lua, Python...

kRPC: Control the game using C#, C++, Java, Lua, Python...

7.8k Downloads

Aerodynamic forces are given in Kilonewton, not in Newton

janismac opened this issue ยท 0 comments

commented

Aerodynamic forces are given in Kilonewton, not in Newton. This is inconsistent with the documentation.

Steps to reproduce:

  • Fly a plane straight and level on Kerbin
  • Run the following script
    import krpc
    from time import sleep
    krpc_connection = krpc.connect()
    space_center = krpc_connection.space_center
    vessel = space_center.active_vessel
    body = vessel.orbit.body
    flight = vessel.flight(vessel.surface_reference_frame)
    while True:
        print(body.surface_gravity * vessel.mass / flight.lift[0])
        sleep(1)

Lift and weight should be equal in straight and level flight.
Expected output: Close to 1.0
Actual output: 1027.072