src/FDM/JSBSim/models/FGPropagate.{h,cpp}: Do not return reference to local.
This commit is contained in:
parent
f9689a561c
commit
9c8d2e046d
2 changed files with 8 additions and 1 deletions
|
@ -559,6 +559,13 @@ void FGPropagate::SetLocation(const FGLocation& l)
|
|||
|
||||
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
FGColumnVector3 FGPropagate::GetEulerDeg(void) const
|
||||
{
|
||||
return VState.qAttitudeLocal.GetEuler() * radtodeg;
|
||||
}
|
||||
|
||||
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
void FGPropagate::DumpState(void)
|
||||
{
|
||||
cout << endl;
|
||||
|
|
|
@ -262,7 +262,7 @@ public:
|
|||
angle about the Y axis, and the third item is the angle
|
||||
about the Z axis (Phi, Theta, Psi).
|
||||
*/
|
||||
const FGColumnVector3& GetEulerDeg(void) const { return VState.qAttitudeLocal.GetEuler() * radtodeg; }
|
||||
FGColumnVector3 GetEulerDeg(void) const;
|
||||
|
||||
/** Retrieves a body frame velocity component.
|
||||
Retrieves a body frame velocity component. The velocity returned is
|
||||
|
|
Loading…
Add table
Reference in a new issue