Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Bank angle from horizon frame?

  1. Mar 1, 2010 #1
    How can i find out aircraft's bank angle knowing it's local frame in horizon frame?

    Specifically, the horizon frame is y for up, z for north, x for east, the plane frame is x for right wing-wards, z for nose-wards, y for up. I know unit vectors of plane frame in horizon frame, and want to find out bank angle from them.

    The best attempt yet is:
    npr=normalize(z_horizon.x,0,z_horizon.z);
    rh=normalize(y_horizon-(npr*scalar(npr,y_horizon)));
    bank=sign(x_horizon.y)*atan2(sqrt(sqr(rh.x)+sqr(rh.z)),rh.y);

    Basically, trying to subtract the projection of the up onto the forward from the up and compute the angle to horizon plane, but it does not work right if pitched and banked.

    Any help?
     
  2. jcsd
  3. Mar 1, 2010 #2
    Solved it.
    Project the up vector onto the plane whose normal is the nose vector, then compute the angle between the resulting reference vector and the actual up vector, correcting for sign thru wing vector.

    ref=normalize((0,1,0)-(z_horizon*scalar((0,1,0),z_horizon)));
    sm=scalar(ref,y_horizon);
    if abs(sm)>=1 then ac=0; else ac=arccos(sm);
    bank=sign(x_horizon.y)*ac;
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Bank angle from horizon frame?
  1. Bank teller (Replies: 6)

Loading...