public void setNewWPAlt(Locationwp gotohere)
{
giveComport = true;
try
{
gotohere.id = (ushort)MAV_CMD.WAYPOINT;
MAV_MISSION_RESULT ans = setWP(gotohere, 0, MAVLink.MAV_FRAME.GLOBAL_RELATIVE_ALT, (byte) 3);
if (ans != MAV_MISSION_RESULT.MAV_MISSION_ACCEPTED)
throw new Exception("Alt Change Failed");
}
catch (Exception ex)
{
giveComport = false;
log.Error(ex);
throw;
}
giveComport = false;
}