Commit afa95d10 authored by David Johnson's avatar David Johnson

bearing is now calculated correctly (with absolute coords rather than

local...)
parent 53488d2e
......@@ -502,7 +502,8 @@ void pc_plot_waypoint(struct pilot_connection *pc)
if (!flipped_bearing) {
flipped_bearing = 1;
/* flip it */
bearing = -bearing;
/* bearing = -bearing; */
bearing = 2.0f * M_PI - bearing;
info("flipped bearing in waypoint gen\n");
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment