Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

This module determines the desired heading and altitude of the aircraft and manages the waypoints (also called “path nodes”) of the plane’s flight path. The module takes in GPS coordinates and altitude measurements and calculates the heading and altitude the plane needs to stay on course. Additionally, the module takes instructions from the state machine to modify the waypoints in the plane’s flight path.

...

Figuring out where the tangent will touch requires some basic trigonometry. [WILL TOUCH ON LATER]. The coordinates at which this occurs can be calculated using:

...

  1. State machine calls the get_next_directions() and passes in appropriate parameters.

  2. Algorithm stuff [ADD LATER]

  3. State machine calls GetResult() and passes in a reference address for a _WaypointManager_Data structure.

  4. The function sets the members of the structure using the newly calculated values.

...