Replies: 3 comments 3 replies
-
Isn't PropertyManager->Tie("velocities/v-north-fps", this, eNorth, (PMF)&FGPropagate::GetVel);
PropertyManager->Tie("velocities/v-east-fps", this, eEast, (PMF)&FGPropagate::GetVel); |
Beta Was this translation helpful? Give feedback.
-
Think about the wind. PropertyManager->Tie("flight-path/psi-gt-rad", this, &FGAuxiliary::GetGroundTrack);
double GetGroundTrack(void) const { return psigt; }
psigt = atan2(in.vVel(eEast), in.vVel(eNorth));
if (psigt < 0.0) psigt += 2*M_PI; PropertyManager->Tie("attitude/psi-rad", this, (int)ePsi, (PMF)&FGPropagate::GetEuler);
/** Retrieves a vehicle Euler angle component.
Retrieves an Euler angle (Phi, Theta, or Psi) from the quaternion that
stores the vehicle orientation relative to the Local frame. The order of
rotations used is Yaw-Pitch-Roll. The Euler angle with subscript (1) is
Phi. Various convenience enumerators are defined in FGJSBBase. The
relevant enumerators for the Euler angle returned by this call are,
ePhi=1, eTht=2, ePsi=3 (e.g. GetEuler(eTht) returns Theta).
units radians
@return An Euler angle.
*/
double GetEuler(int axis) const { return VState.qAttitudeLocal.GetEuler(axis); } PropertyManager->Tie("attitude/heading-true-rad", this, (int)ePsi, (PMF)&FGPropagate::GetEuler); |
Beta Was this translation helpful? Give feedback.
-
Yep. And as you can see in the code snippets Now if there is no wind then |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, me again ! I'm still trying to implement a PID controller for the x8 UAV.
In the book I'm following, they introduce the notion of successive loop closure. As showed in the book, I'm trying to implement an inner loop controlling the roll angle by commanding the ailerons, and an outer loop controlling the course angle by commanding the roll angle.
My problem is that I can't find in JSBSim, a property that returns the "course angle" denoted$\chi$ as described in these figures from the book :

I've tried

attitude/psi-rad
,attitude/heading-true-rad
andflight-path/psi-gt-rad
. When plotted, all of them seem to be the same and representing the yaw angle staying at zero (which I can't control, I only have elevons).Is there a way of retrieving this course angle$\chi$ ?
Thanks a lot !
Beta Was this translation helpful? Give feedback.
All reactions