Angular rates in the body frame return zero
grbsystems opened this issue ยท 0 comments
Given the following:
conn = krpc.connect()
vessel = conn.space_center.active_vessel
space_center = conn.space_center
frame1 = vessel.reference_frame
frame2 = vessel.orbital_reference_frame
print(vessel.angular_velocity(frame1))
print(vessel.angular_velocity(frame2))
I get:
(0.0, 0.0, 0.0)
(-0.15527303042328897, 0.7876965862370001, 0.7163367237628568)
I would expect to get P, Q and R (using standard aerospace body rate notation). I'm looking for these values as I'm trying to use MATLAB and KSP to teach control systems.
I'm either not understanding how reference frames apply, I'm doing something wrong or there's a bug.
Edited to add:
print(vessel.velocity(frame1))
print(vessel.velocity(frame2))
prints
(0.0, 0.0, 0.0)
(0.0, 0.0, -0.0)
for a vessel in orbit. flight.speed and flight.vertical speed also return zero. Roll, pitch, heading and gforce on flight all work as expected.