Profile image

help explains calculating trigonometry on FT for hud pfd etc

2,662 griges  one month ago

i've been trying to understand FT i like it, i think i can figured to some degree
but i can't understand whats the calculation work
i need help on explanation on how to use the trigonometry

heres the top line on PlanariaLabs 1partHUD

<alpha=#FF><size=0.8px><pos={tan(AngleOfSlip)*HudDistance*20;f3}px><voffset={(tan(AngleOfAttack)*HudDistance*10)+0.72;f3}px>{((tan(max(abs(AngleOfAttack),abs(AngleOfSlip)))*HudDistance*2<0.8)&abs(AngleOfSlip)<90)?"<rotate=90>-</rotate>":""}
<pos={tan(AngleOfSlip)*HudDistance*20;f3}px><voffset={(tan(AngleOfAttack)*HudDistance*10)+0.45;f3}px>{((tan(max(abs(AngleOfAttack),abs(AngleOfSlip)))*HudDistance*2<0.8)&abs(AngleOfSlip)<90)?"<mspace=0.27px>-?-<mspace=1px>":""}
<size=0.5px><mspace=0.33px><voffset=0.5425px>-<voffset=0.4085px>W<voffset=0.5425px>-<mspace=1px>

i believe its for the trajectory vector thing.
in the first line, theres <pos> why use tan and how to measure huddistance also wheres the *20 comes from & whats ;f3 for
and the <voffset> "(*10)+0.72;f3

also the </rotate> does other also work? like </mspace></pos>

(edit)
i dont understand why they become &lt its just `<

  • Log in to leave a comment
  • Profile image
    2,662 griges

    @SilverStar the one above is hud old version,before the gund predictor
    i did downloaded updated one, i still cannot understand the formula

    i thought for a moment, for the Y axis, using voffset=sin{pitchAngle}/180*a for a is the amount space the text should moving
    but its just not working right

    one month ago
  • Profile image
    16.5k SilverStar

    @griges Look at the expression of the variable (download the original part if you don't have the custom variables)

    +1 one month ago
  • Profile image

    @griges uhhh.....

    +1 one month ago
  • Profile image
    2,662 griges

    @OverlordPrime yes that! 😁, can you teach me how? how to measure it
    and can you give me example?

    as
    how to calculate the pitch ladder/horizon thing if i want to use this symbol ⁠ ̄ ⁠ ̄

    one month ago
  • Profile image

    @griges you can measure it by finding the y axis difference between the text and cockpit.

    +1 one month ago
  • Profile image
    2,662 griges

    @SilverStar yes its custom. but idk how to count it, like from camera to the text? but how to measure it 😅
    also what document? if about the tags, i think i figured that part . i just dont understand the calculation and where the numbers from

    one month ago
  • Profile image
    2,662 griges

    thank you @OverlordPrime but i want text 😄 but yeah rotator can work now that i think of it

    one month ago
  • Profile image
    16.5k SilverStar

    HudDistance is probably a custom variable he made (and maybe same as f3). On his post he note to add the custom variables and idk if you done it.
    The document posted below will help you a lot

    +1 one month ago
  • Profile image

    It's easier said than done. I suggest you use multiple labels and rotators.

    +1 one month ago
  • Profile image
    2,662 griges

    👍 thanks
    i saw that i like it
    i also want to make custom hud my own but i dont understand the calculation

    one month ago
  • Profile image
    51.1k PlaneFlightX

    With labels, most tags have closing tags (the ones with the slash in them). Here's a document explaining all the tags.
    About the trigonometry, I have no idea. I modified the HUD to suit my own plane (2 years ago), and I just left some stuff as-is, including this.

    +1 one month ago