This commit is contained in:
Diego Freitas 2026-03-23 12:32:52 -03:00
parent 878e7b5195
commit 8b77c06164
4 changed files with 7 additions and 7 deletions

View File

@ -1956,7 +1956,7 @@ namespace AgroBase.Forms.Operacoes
// mapeia os pontos
var pts = _segDebug.centros_corredor
.Where(p => p != null && p.Length >= 2)
.Select(p => Map(p[0], p[1]))
.Select(p => Map(p?[0] ?? 0, p?[1] ?? 0))
.ToArray();
if (pts.Length < 2) return;

View File

@ -101,7 +101,7 @@ namespace AgroBase.Forms.Simuladores
AtualizarDadosTela();
}
private void DesenharCorredor(Bitmap imagemBase, List<double[]> centrosCorredor, int largura, int altura, int larguraRoboPx)
private void DesenharCorredor(Bitmap imagemBase, List<double?[]> centrosCorredor, int largura, int altura, int larguraRoboPx)
{
try
{

View File

@ -655,7 +655,7 @@ namespace AgroBase
)
);
if (deveInterromper && false)
if (deveInterromper)
{
return;
}

View File

@ -557,12 +557,12 @@ namespace AgroBase.Models.Operadores
public double timestamp { get; set; }
public int height { get; set; }
public int width { get; set; }
public double erro_angular { get; set; }
public double erro_lateral_pct { get; set; }
public double? erro_angular { get; set; }
public double? erro_lateral_pct { get; set; }
public StatusCarroMapa status_corredor { get; set; }
public StatusCarroMapa status_corredor_anterior { get; set; }
public VisualWorkerMessageSegmentacaoSemanticaDebugCorredorModel status_corredor_debug { get; set; }
public List<double[]> centros_corredor { get; set; }
public List<double?[]> centros_corredor { get; set; }
public VisualWorkerMessageSegmentacaoSemanticaModel Clone()
{
@ -576,7 +576,7 @@ namespace AgroBase.Models.Operadores
status_corredor = status_corredor,
status_corredor_anterior = status_corredor_anterior,
status_corredor_debug = status_corredor_debug,
centros_corredor = new List<double[]>(centros_corredor ?? new List<double[]>())
centros_corredor = new List<double?[]>(centros_corredor ?? new List<double?[]>())
};
}
}