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

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

7.8k Downloads

Surface Reference frame -15.9 degrees in yaw axis

ControlSoup opened this issue ยท 1 comments

commented

Capture

srf_frame = vessel.orbit.body.reference_frame

Attempting to make a thrust variance craft, it works perfectly, but i have to tilt my cockpit 15 degrees to the left to get it close to zero....not sure why this is...am i missing somthing?

Both converting from
rot = euler_from_quaternion(vessel.flight(srf_frame).rotation[0]...etc and vessel.flight().roll give the same issue with the offset

This means that craft has inaccurate roll values when the craft is away from orientation, making landing and self-orientation very hard!

commented

I think you need to use vessel.surface_reference_frame