Skip to content

Commit

Permalink
GCSViews: If the delay of WAYPOINT is set to less than 0, set it to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Jun 26, 2021
1 parent 17e38e4 commit ad3bd87
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion GCSViews/FlightPlanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2940,7 +2940,16 @@ private Locationwp DataViewtoLocationwp(int a)
false);
}

temp.p1 = float.Parse(Commands.Rows[a].Cells[Param1.Index].Value.ToString());
if (Commands.Rows[a].Cells[Command.Index].Value.Equals("WAYPOINT"))
{
temp.p1 = float.Parse(Commands.Rows[a].Cells[Param1.Index].Value.ToString());
if (temp.p1 < 0)
{
temp.p1 = 0;
DataGridViewTextBoxCell cell = Commands.Rows[a].Cells[Param1.Index] as DataGridViewTextBoxCell;
cell.Value = temp.p1;
}
}

temp.alt =
(float)
Expand Down

0 comments on commit ad3bd87

Please sign in to comment.