Skip to content

UH-1H Get_Bearing function #25

@fakirsu

Description

@fakirsu

Hello,
I have the distinct impression that the mathematical formula provided in the UH-1H profile of DCS.ExportScript, namely math.atan2(lon2 - lon1, lat2 - lat1), is not correct.

The correct mathematical formula seems to me to be: θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ )
where φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude)

When I do tests with this new formula, I have almost no more discrepancy with the bearing determined with the rule of the F10 card.

The distance calculation formula, on the other hand, seems correct.

What do you think ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions