Skip to content

Commit

Permalink
remove first (home) cmd when loading saved fence or rally from file.
Browse files Browse the repository at this point in the history
  • Loading branch information
EosBandi authored and meee1 committed Dec 3, 2021
1 parent c6008ea commit 8bd25b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GCSViews/FlightPlanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,11 @@ public void readQGC110wpfile(string file, bool append = false)
try
{
var cmds = WaypointFile.ReadWaypointFile(file);

if ((MAVLink.MAV_MISSION_TYPE)cmb_missiontype.SelectedValue == MAVLink.MAV_MISSION_TYPE.FENCE ||
(MAVLink.MAV_MISSION_TYPE)cmb_missiontype.SelectedValue == MAVLink.MAV_MISSION_TYPE.RALLY)
{
cmds.RemoveAt(0);
}
processToScreen(cmds, append);

writeKML();
Expand Down

0 comments on commit 8bd25b4

Please sign in to comment.