Attitude indicator based on inertial navigation system (INS) using a quaternion model.
Manual orientation of the spacecraft by custom controls.
Get orientation form an DIY Intertial Navigation System via a serial data link. See other repository
For the SpaceX Crew Capsule Dragon 3D model credits to Nick Gust on grabcad.com