MCPcopy Create free account
hub / github.com/JSBSim-Team/jsbsim / BuildStabilityTransformMatrices

Method BuildStabilityTransformMatrices

src/models/FGAerodynamics.cpp:644–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642//
643
644void FGAerodynamics::BuildStabilityTransformMatrices(void)
645{
646 double ca = cos(in.Alpha);
647 double sa = sin(in.Alpha);
648
649 // Stability-to-body
650 Ts2b(1, 1) = ca;
651 Ts2b(1, 2) = 0.0;
652 Ts2b(1, 3) = -sa;
653 Ts2b(2, 1) = 0.0;
654 Ts2b(2, 2) = 1.0;
655 Ts2b(2, 3) = 0.0;
656 Ts2b(3, 1) = sa;
657 Ts2b(3, 2) = 0.0;
658 Ts2b(3, 3) = ca;
659
660 Tb2s = Ts2b.Transposed();
661}
662
663//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
664// The bitmasked value choices are as follows:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected