pequenos ajustes base fix
This commit is contained in:
parent
a6d9a7271a
commit
23799a13bb
|
|
@ -301,6 +301,8 @@ namespace OperationControl.Services
|
|||
|
||||
case MetodoFixacaoBase.SurveyIn:
|
||||
await ConfigurarModuloBase(tempo_fixacao: TempoSurveryIn, porta_usb: portaUsb, porta_saida: portaSaida);
|
||||
while (UltimaLeitura.QualidadeFix != TiposCorrecaoGPS.BaseFix && BaseFix.inicioFix != null && (DateTime.UtcNow - BaseFix.inicioFix).Value.TotalSeconds < TempoSurveryIn)
|
||||
await Task.Delay(1000);
|
||||
break;
|
||||
|
||||
case MetodoFixacaoBase.Manual:
|
||||
|
|
@ -382,7 +384,7 @@ namespace OperationControl.Services
|
|||
try
|
||||
{
|
||||
byte[] bytes = Encoding.ASCII.GetBytes(cmd);
|
||||
PortaGps.Write(bytes, 0, bytes.Length);
|
||||
PortaGps?.Write(bytes, 0, bytes.Length);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -1375,7 +1377,7 @@ namespace OperationControl.Services
|
|||
try
|
||||
{
|
||||
var b = Encoding.ASCII.GetBytes(c);
|
||||
_Porta.Write(b, 0, b.Length);
|
||||
_Porta?.Write(b, 0, b.Length);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -1397,7 +1399,7 @@ namespace OperationControl.Services
|
|||
|
||||
// Você já deve ter um leitor da COM que devolve linhas NMEA.
|
||||
// Abaixo, vamos supor um método async que lê GGA parseado.
|
||||
while (ProgressoGeral < 100)
|
||||
while (ProgressoGeral < 100 && FixLiberado)
|
||||
{
|
||||
// Verifica se o timeout tentando aplicar fix ja excedeu
|
||||
if (inicioTentativaFix.Value.AddMinutes(2) < DateTime.UtcNow && inicioFix is null)
|
||||
|
|
|
|||
Loading…
Reference in New Issue