Skip to content

Commit

Permalink
FlightPlanner: populate wps fro mavftp read
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Mar 14, 2023
1 parent 3e2d41e commit 4778ffc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GCSViews/FlightPlanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3962,6 +3962,8 @@ private void getWPs(IProgressReporterDialogue sender)
return null;
});
var values = missionpck.unpack(paramfileTask.GetAwaiter().GetResult().ToArray());
MainV2.comPort.MAVlist[MainV2.comPort.MAV.sysid, MainV2.comPort.MAV.compid].wps.Clear();
values.wps.ForEach(wp => MainV2.comPort.MAVlist[MainV2.comPort.MAV.sysid, MainV2.comPort.MAV.compid].wps[wp.seq] = wp);
WPtoScreen(values.wps.Select(a => (Locationwp)a).ToList());
return;
}
Expand Down

0 comments on commit 4778ffc

Please sign in to comment.