ajuste geracao mapa gps
This commit is contained in:
parent
fb39cd67dd
commit
72a0eb823d
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -32,6 +32,7 @@
|
|||
this.pnlMapa = new System.Windows.Forms.Panel();
|
||||
this.picLoading = new System.Windows.Forms.PictureBox();
|
||||
this.pnlInformacoes = new System.Windows.Forms.Panel();
|
||||
this.btnGerarMapa = new System.Windows.Forms.Button();
|
||||
this.lblOrientacao = new System.Windows.Forms.Label();
|
||||
this.chbSalvar = new System.Windows.Forms.CheckBox();
|
||||
this.lblVelocidade = new System.Windows.Forms.Label();
|
||||
|
|
@ -41,7 +42,8 @@
|
|||
this.lblPrecisao = new System.Windows.Forms.Label();
|
||||
this.lblLongitude = new System.Windows.Forms.Label();
|
||||
this.lblLatitude = new System.Windows.Forms.Label();
|
||||
this.btnGerarMapa = new System.Windows.Forms.Button();
|
||||
this.btnNovaRua = new System.Windows.Forms.Button();
|
||||
this.btnLimparRuas = new System.Windows.Forms.Button();
|
||||
this.pnlMapa.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.picLoading)).BeginInit();
|
||||
this.pnlInformacoes.SuspendLayout();
|
||||
|
|
@ -56,7 +58,7 @@
|
|||
this.pnlMapa.Location = new System.Drawing.Point(9, 10);
|
||||
this.pnlMapa.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.pnlMapa.Name = "pnlMapa";
|
||||
this.pnlMapa.Size = new System.Drawing.Size(1177, 464);
|
||||
this.pnlMapa.Size = new System.Drawing.Size(1253, 464);
|
||||
this.pnlMapa.TabIndex = 2;
|
||||
//
|
||||
// picLoading
|
||||
|
|
@ -69,7 +71,7 @@
|
|||
this.picLoading.Location = new System.Drawing.Point(194, 24);
|
||||
this.picLoading.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.picLoading.Name = "picLoading";
|
||||
this.picLoading.Size = new System.Drawing.Size(789, 416);
|
||||
this.picLoading.Size = new System.Drawing.Size(865, 416);
|
||||
this.picLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.picLoading.TabIndex = 2;
|
||||
this.picLoading.TabStop = false;
|
||||
|
|
@ -77,6 +79,8 @@
|
|||
//
|
||||
// pnlInformacoes
|
||||
//
|
||||
this.pnlInformacoes.Controls.Add(this.btnLimparRuas);
|
||||
this.pnlInformacoes.Controls.Add(this.btnNovaRua);
|
||||
this.pnlInformacoes.Controls.Add(this.btnGerarMapa);
|
||||
this.pnlInformacoes.Controls.Add(this.lblOrientacao);
|
||||
this.pnlInformacoes.Controls.Add(this.chbSalvar);
|
||||
|
|
@ -91,9 +95,19 @@
|
|||
this.pnlInformacoes.Location = new System.Drawing.Point(0, 479);
|
||||
this.pnlInformacoes.Margin = new System.Windows.Forms.Padding(2);
|
||||
this.pnlInformacoes.Name = "pnlInformacoes";
|
||||
this.pnlInformacoes.Size = new System.Drawing.Size(1195, 46);
|
||||
this.pnlInformacoes.Size = new System.Drawing.Size(1271, 46);
|
||||
this.pnlInformacoes.TabIndex = 3;
|
||||
//
|
||||
// btnGerarMapa
|
||||
//
|
||||
this.btnGerarMapa.Location = new System.Drawing.Point(1189, 12);
|
||||
this.btnGerarMapa.Name = "btnGerarMapa";
|
||||
this.btnGerarMapa.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnGerarMapa.TabIndex = 10;
|
||||
this.btnGerarMapa.Text = "Gerar Mapa";
|
||||
this.btnGerarMapa.UseVisualStyleBackColor = true;
|
||||
this.btnGerarMapa.Click += new System.EventHandler(this.btnGerarMapa_Click);
|
||||
//
|
||||
// lblOrientacao
|
||||
//
|
||||
this.lblOrientacao.AutoSize = true;
|
||||
|
|
@ -113,6 +127,7 @@
|
|||
this.chbSalvar.TabIndex = 8;
|
||||
this.chbSalvar.Text = "Salvar Trajetória";
|
||||
this.chbSalvar.UseVisualStyleBackColor = true;
|
||||
this.chbSalvar.CheckedChanged += new System.EventHandler(this.chbSalvar_CheckedChanged);
|
||||
//
|
||||
// lblVelocidade
|
||||
//
|
||||
|
|
@ -184,21 +199,31 @@
|
|||
this.lblLatitude.TabIndex = 1;
|
||||
this.lblLatitude.Text = "Latitude: 0";
|
||||
//
|
||||
// btnGerarMapa
|
||||
// btnNovaRua
|
||||
//
|
||||
this.btnGerarMapa.Location = new System.Drawing.Point(1033, 12);
|
||||
this.btnGerarMapa.Name = "btnGerarMapa";
|
||||
this.btnGerarMapa.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnGerarMapa.TabIndex = 10;
|
||||
this.btnGerarMapa.Text = "Gerar Mapa";
|
||||
this.btnGerarMapa.UseVisualStyleBackColor = true;
|
||||
this.btnGerarMapa.Click += new System.EventHandler(this.btnGerarMapa_Click);
|
||||
this.btnNovaRua.Location = new System.Drawing.Point(1027, 12);
|
||||
this.btnNovaRua.Name = "btnNovaRua";
|
||||
this.btnNovaRua.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnNovaRua.TabIndex = 11;
|
||||
this.btnNovaRua.Text = "Nova Rua";
|
||||
this.btnNovaRua.UseVisualStyleBackColor = true;
|
||||
this.btnNovaRua.Click += new System.EventHandler(this.btnNovaRua_Click);
|
||||
//
|
||||
// btnLimparRuas
|
||||
//
|
||||
this.btnLimparRuas.Location = new System.Drawing.Point(1108, 12);
|
||||
this.btnLimparRuas.Name = "btnLimparRuas";
|
||||
this.btnLimparRuas.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnLimparRuas.TabIndex = 12;
|
||||
this.btnLimparRuas.Text = "Reiniciar";
|
||||
this.btnLimparRuas.UseVisualStyleBackColor = true;
|
||||
this.btnLimparRuas.Click += new System.EventHandler(this.btnLimparRuas_Click);
|
||||
//
|
||||
// frmGPS
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1195, 525);
|
||||
this.ClientSize = new System.Drawing.Size(1271, 525);
|
||||
this.Controls.Add(this.pnlInformacoes);
|
||||
this.Controls.Add(this.pnlMapa);
|
||||
this.Name = "frmGPS";
|
||||
|
|
@ -229,5 +254,7 @@
|
|||
private System.Windows.Forms.CheckBox chbSalvar;
|
||||
private System.Windows.Forms.Label lblOrientacao;
|
||||
private System.Windows.Forms.Button btnGerarMapa;
|
||||
private System.Windows.Forms.Button btnNovaRua;
|
||||
private System.Windows.Forms.Button btnLimparRuas;
|
||||
}
|
||||
}
|
||||
|
|
@ -14,7 +14,7 @@ namespace AgroBase.Forms
|
|||
{
|
||||
private MapasModel Mapa;
|
||||
private AsyncTaskTimerModel tmrLeitura;
|
||||
private List<GPSModel> Trajetoria = new List<GPSModel>();
|
||||
private List<List<GPSModel>> Trajetoria = new List<List<GPSModel>>();
|
||||
private string LogID = DateTime.Now.ToString("dd_MM_yyyy_HH_mm_ss");
|
||||
|
||||
public frmGPS()
|
||||
|
|
@ -63,7 +63,7 @@ namespace AgroBase.Forms
|
|||
Velocidade = GPSService.UltimaLeitura.Velocidade,
|
||||
Orientacao = GPSService.UltimaLeitura.Orientacao
|
||||
};
|
||||
Trajetoria.Add(leitura);
|
||||
Trajetoria[Trajetoria.Count].Add(leitura);
|
||||
|
||||
File.WriteAllText(Variaveis.CaminhoLogsDispositivos + "GPS/" + LogID + ".json", JsonConvert.SerializeObject(Trajetoria, Formatting.None), Encoding.UTF8);
|
||||
}
|
||||
|
|
@ -82,8 +82,30 @@ namespace AgroBase.Forms
|
|||
|
||||
private void btnGerarMapa_Click(object sender, EventArgs e)
|
||||
{
|
||||
MapasService.CriarArquivoMapa(new List<List<GPSModel>> { Trajetoria });
|
||||
MapasService.CriarArquivoMapa(Trajetoria);
|
||||
MessageBox.Show("Mapa gerado com sucesso!", "Sucesso", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
|
||||
private void btnNovaRua_Click(object sender, EventArgs e)
|
||||
{
|
||||
Trajetoria.Add(new List<GPSModel>());
|
||||
}
|
||||
|
||||
private void chbSalvar_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chbSalvar.Checked && Trajetoria.Count == 0)
|
||||
{
|
||||
btnNovaRua_Click(sender, e);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnLimparRuas_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("Reiniciar o mapeamento do trajeto?", "Confirmacao", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
Trajetoria = new List<List<GPSModel>>();
|
||||
btnNovaRua_Click(sender, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace AgroBase.Services
|
|||
{
|
||||
get
|
||||
{
|
||||
return UltimaLeitura.DataHora.AddMilliseconds(ModbusService.TaxaAmostragem * 5) > DateTime.Now;
|
||||
return UltimaLeitura.DataHora.AddMilliseconds(ModbusService.TaxaAmostragem * 20) > DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace AgroBase.Services
|
|||
{
|
||||
get
|
||||
{
|
||||
return DadosLeitura.Momento.AddMilliseconds(ModbusService.TaxaAmostragem * 5) > DateTime.Now;
|
||||
return DadosLeitura.Momento.AddMilliseconds(ModbusService.TaxaAmostragem * 20) > DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace AgroBase.Services
|
|||
{
|
||||
get
|
||||
{
|
||||
return DadosLeitura.Momento.AddMilliseconds(ModbusService.TaxaAmostragem * 5) > DateTime.Now;
|
||||
return DadosLeitura.Momento.AddMilliseconds(ModbusService.TaxaAmostragem * 20) > DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -118308,3 +118308,4 @@ Parameter name: values
|
|||
11/12/2024 07:41:25:362 - Endereço 4 (192.168.105.10): Timeout ou erro ao receber resposta. GET=True, Parametro=Direction, Valor=0
|
||||
11/12/2024 07:41:25:391 - Endereço 1 (192.168.105.10): Resposta inválida. EC
|
||||
11/12/2024 07:41:25:392 - Endereço 1 (192.168.105.10): Timeout ou erro ao receber resposta. GET=False, Parametro=ControleRS485, Valor=1
|
||||
11/12/2024 16:32:05:101 - Endereço 2 (192.168.105.10): Módulo com código de alarme 1, reiniciando o módulo...
|
||||
|
|
|
|||
|
|
@ -224,3 +224,12 @@
|
|||
10/12/2024 16:07:30:248 - Porta COM107 - 0: Erro ao processar fila de comandos. Erro=A device attached to the system is not functioning.
|
||||
|
||||
10/12/2024 16:10:59:209 - Porta COM107 - 0: Erro ao processar fila de comandos. Erro=The port is closed.
|
||||
11/12/2024 14:52:59:929 - Porta COM107 - 0: Erro ao processar fila de comandos. Erro=A device attached to the system is not functioning.
|
||||
|
||||
11/12/2024 16:27:04:781 - Porta COM107 - 0: Erro ao processar fila de comandos. Erro=The port is closed.
|
||||
11/12/2024 16:28:08:593 - Porta COM107 - 0: Erro ao processar fila de comandos. Erro=A device which does not exist was specified.
|
||||
|
||||
11/12/2024 16:29:52:372 - Porta COM101 - 0: Erro ao processar fila de comandos. Erro=The port is closed.
|
||||
11/12/2024 16:30:37:151 - Porta COM101 - 0: Erro ao processar fila de comandos. Erro=The port is closed.
|
||||
11/12/2024 16:32:31:461 - Porta COM107 - 0: Erro ao processar fila de comandos. Erro=The port is closed.
|
||||
11/12/2024 16:33:17:942 - Porta COM107 - 0: Erro ao processar fila de comandos. Erro=The port is closed.
|
||||
|
|
|
|||
|
|
@ -15377,3 +15377,86 @@ Parameter name: source
|
|||
11/12/2024 07:49:04:958 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 07:49:06:836 - Endereço 254 (192.168.105.11): Dados recebidos de um endereço inválido: [251 254]
|
||||
11/12/2024 07:49:06:836 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=46
|
||||
11/12/2024 14:53:30:494 - Endereço 1 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 14:53:55:629 - Endereço 1 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 14:56:04:454 - Endereço 2 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 14:56:04:532 - Endereço 191 (192.168.105.11): Dados recebidos de um endereço inválido: [251 191 180 129 255]
|
||||
11/12/2024 14:56:04:532 - Endereço 2 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=46
|
||||
11/12/2024 14:56:29:541 - Endereço 245 (192.168.105.11): Dados recebidos de um endereço inválido: [2 245]
|
||||
11/12/2024 14:56:29:541 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 14:56:29:557 - Endereço 1 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 14:56:31:588 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=33
|
||||
11/12/2024 14:56:32:587 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=33
|
||||
11/12/2024 14:56:32:650 - Endereço 0 (192.168.105.11): Dados recebidos de um endereço inválido: [0 0 0 49]
|
||||
11/12/2024 14:56:32:650 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 14:56:40:124 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=38
|
||||
11/12/2024 14:56:41:136 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=38
|
||||
11/12/2024 14:56:41:182 - Endereço 24 (192.168.105.11): Dados recebidos de um endereço inválido: [0 24 136 209]
|
||||
11/12/2024 14:56:41:182 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 14:56:45:227 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=33
|
||||
11/12/2024 14:56:46:227 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=33
|
||||
11/12/2024 14:56:46:289 - Endereço 0 (192.168.105.11): Dados recebidos de um endereço inválido: [0 0 0 49]
|
||||
11/12/2024 14:56:46:289 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 14:56:49:283 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=33
|
||||
11/12/2024 14:56:50:298 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=33
|
||||
11/12/2024 14:56:50:361 - Endereço 0 (192.168.105.11): Dados recebidos de um endereço inválido: [0 0 0 50]
|
||||
11/12/2024 14:56:50:361 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 14:56:58:519 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=38
|
||||
11/12/2024 14:56:58:550 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=38
|
||||
11/12/2024 14:57:15:420 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=38
|
||||
11/12/2024 14:57:15:420 - Endereço 245 (192.168.105.11): Dados recebidos de um endereço inválido: [4 245 2 246]
|
||||
11/12/2024 14:57:15:420 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=38
|
||||
11/12/2024 14:57:19:452 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=33
|
||||
11/12/2024 14:57:20:451 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=33
|
||||
11/12/2024 14:57:20:483 - Endereço 0 (192.168.105.11): Dados recebidos de um endereço inválido: [0 0 0 50]
|
||||
11/12/2024 14:57:20:483 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:07:55:772 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:07:56:304 - Endereço 243 (192.168.105.11): Dados recebidos de um endereço inválido: [251 243]
|
||||
11/12/2024 15:07:56:304 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:07:57:491 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:02:521 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:02:537 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:02:568 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:03:708 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:08:04:286 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:05:295 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:05:295 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:05:295 - Endereço 245 (192.168.105.11): Dados recebidos de um endereço inválido: [2 245]
|
||||
11/12/2024 15:08:05:295 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:05:311 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:05:311 - Endereço 245 (192.168.105.11): Dados recebidos de um endereço inválido: [159 245]
|
||||
11/12/2024 15:08:05:311 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:05:404 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:08:06:029 - Endereço 160 (192.168.105.11): Dados recebidos de um endereço inválido: [125 160 255]
|
||||
11/12/2024 15:08:06:029 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:06:607 - Endereço 245 (192.168.105.11): Dados recebidos de um endereço inválido: [3 245 2 245]
|
||||
11/12/2024 15:08:06:607 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:08:52:070 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:08:52:164 - Endereço 82 (192.168.105.11): Dados recebidos de um endereço inválido: [251 82 161 8 0 48]
|
||||
11/12/2024 15:08:52:164 - Endereço 2 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:08:52:164 - Endereço 255 (192.168.105.11): Dados recebidos de um endereço inválido: [251 255]
|
||||
11/12/2024 15:08:52:164 - Endereço 2 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:08:57:135 - Endereço 245 (192.168.105.11): Dados recebidos de um endereço inválido: [4 245 2 246]
|
||||
11/12/2024 15:08:57:135 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:09:02:363 - Endereço 255 (192.168.105.11): Dados recebidos de um endereço inválido: [80 255]
|
||||
11/12/2024 15:09:02:363 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:09:03:941 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:09:03:972 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:09:04:982 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:09:23:404 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:09:23:404 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:09:34:361 - Endereço 2 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:11:22:903 - Endereço 1 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:11:25:558 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
11/12/2024 15:12:07:450 - Endereço 2 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:12:07:450 - Endereço 245 (192.168.105.11): Dados recebidos de um endereço inválido: [4 245 2 246]
|
||||
11/12/2024 15:12:07:450 - Endereço 2 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 15:12:12:520 - Endereço 67 (192.168.105.11): Dados recebidos de um endereço inválido: [255 67 127 160 127 0 48]
|
||||
11/12/2024 15:12:12:520 - Endereço 2 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 16:27:38:646 - Endereço 196 (192.168.105.11): Dados recebidos de um endereço inválido: [251 196]
|
||||
11/12/2024 16:27:38:646 - Endereço 1 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 16:31:17:851 - Endereço 242 (192.168.105.11): Dados recebidos de um endereço inválido: [251 242]
|
||||
11/12/2024 16:31:17:851 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=1
|
||||
11/12/2024 16:31:33:955 - Endereço 35 (192.168.105.11): Dados recebidos de um endereço inválido: [251 35 61 250]
|
||||
11/12/2024 16:31:33:955 - Endereço 3 (192.168.105.11): Timeout ao receber resposta. GET=True, Parametro=46
|
||||
11/12/2024 16:32:42:300 - Endereço 4 (192.168.105.11): Timeout ao receber resposta. GET=False, Parametro=13
|
||||
|
|
|
|||
|
|
@ -208,3 +208,5 @@
|
|||
|
||||
10/12/2024 16:07:30:232 - Porta COM107 - 1: Erro ao processar fila de comandos. Erro=A device attached to the system is not functioning.
|
||||
|
||||
11/12/2024 16:27:04:750 - Porta COM107 - 1: Erro ao processar fila de comandos. Erro=A device which does not exist was specified.
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
{"tmrRegistrador":{"_uiControl":null,"State":2,"IsRunning":false,"IsStopped":true,"IsCreated":false,"Interval":1000,"StackTrace":"AtuadorModel.IniciarRegistrador","Id":"tmrRegistrador_Atu","Ticks":165,"TimeTick":"00:00:00"},"Modulo_ID":"Atu","IP":"192.168.100.13","RequisitarDados":true,"Conectado":false,"QuantidadeBicos":4,"DensidadeHerbicida":1.05,"BicosPulverizadores":[{"ID":"B01","Posicao":1,"Componente":422,"AtuacaoNivelAlto":true,"ComandoAtuar":false,"Comandar":true,"Testando":false,"Funcoes":[21],"LeituraStatusBico":false,"MediaNivelFluxo":0.0,"Leitura":null,"Inicializado":false,"Atuacoes":0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0},{"ID":"B02","Posicao":2,"Componente":422,"AtuacaoNivelAlto":true,"ComandoAtuar":false,"Comandar":true,"Testando":false,"Funcoes":[21],"LeituraStatusBico":false,"MediaNivelFluxo":0.0,"Leitura":null,"Inicializado":false,"Atuacoes":0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0},{"ID":"B03","Posicao":3,"Componente":422,"AtuacaoNivelAlto":true,"ComandoAtuar":false,"Comandar":true,"Testando":false,"Funcoes":[21],"LeituraStatusBico":false,"MediaNivelFluxo":0.0,"Leitura":null,"Inicializado":false,"Atuacoes":0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0},{"ID":"B04","Posicao":4,"Componente":422,"AtuacaoNivelAlto":true,"ComandoAtuar":false,"Comandar":true,"Testando":false,"Funcoes":[21],"LeituraStatusBico":false,"MediaNivelFluxo":0.0,"Leitura":null,"Inicializado":false,"Atuacoes":0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0}],"BombasPressurizadoras":[{"ID":"BOMBA","ComandoAtuar":false,"Componente":325,"LeituraEstado":false,"Comandar":true,"Testando":false,"Funcoes":[14,35,36,37,5],"LeituraPotencia":0.0,"LeituraPressaoSP":0.0,"LeituraPressao":0.0,"Leitura":null,"Inicializado":false}],"Sensores":[{"LogGrafico":[],"ID":"FLXLN","Prioridade":23,"Descricao":"Fluxo na linha principal","Componente":198,"Aferir":true,"DelayAmostragem":300,"Leitura":null,"Inicializado":false,"Testando":false,"Funcoes":[25],"Parametros":[],"UnidadeMedida":"mL/s","LimiteMaximo":0.0,"LimiteMinimo":0.0},{"LogGrafico":[],"ID":"MASRS","Prioridade":3,"Descricao":"Massa do reservatório de herbicida","Componente":532,"Aferir":true,"DelayAmostragem":1000,"Leitura":null,"Inicializado":false,"Testando":false,"Funcoes":[22,23],"Parametros":[],"UnidadeMedida":"Kg","LimiteMaximo":50.0,"LimiteMinimo":5.0},{"LogGrafico":[],"ID":"PRSLN","Prioridade":3,"Descricao":"Pressão na linha principal","Componente":333,"Aferir":true,"DelayAmostragem":1000,"Leitura":null,"Inicializado":false,"Testando":false,"Funcoes":[24],"Parametros":[["Vmin","000.00"],["Vmax","004.50"],["Pmax","174.04"]],"UnidadeMedida":"psi","LimiteMaximo":120.0,"LimiteMinimo":60.0}],"BombaPressurizadora":{"ID":"BOMBA","ComandoAtuar":false,"Componente":325,"LeituraEstado":false,"Comandar":true,"Testando":false,"Funcoes":[14,35,36,37,5],"LeituraPotencia":0.0,"LeituraPressaoSP":0.0,"LeituraPressao":0.0,"Leitura":null,"Inicializado":false},"ScriptDeteccaoErvas":"weed_detector-1_0.py","DadosLeitura":{"Momento":"0001-01-01T00:00:00","Conectado":false,"Mod_ID":null,"QualidadeWifi":0,"LatenciaLoop":0,"BicosPulverizadores":[],"BombasPressurizadoras":[],"SensoresFluxo":[],"SensoresMassa":[],"SensoresPressao":[]},"_MassaRef":0.8,"_MassaLeituraRef":40876.37,"_MassaLeituraExtra":1895800.0,"MassaReservatorio":0.0,"VolumeReservatorio":0.0,"PercentualReservatorio":0.0,"VolumeVazaoAferido":0.0,"_FluxoMlRef":102.0,"_FluxoPulsoRef":80.0,"VazaoFluxoMLpSInstantanea":0.0,"VazaoFluxoMLpSMedia":0.0,"VolumeVazaoML":0.0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0,"_PressaoVmin":0.0,"_PressaoVmax":4.5,"_PressaoMax":174.045,"PressaoLinha":0.0,"PressaoLinhaCalc":0.0}
|
||||
{"tmrRegistrador":{"_uiControl":null,"State":2,"IsRunning":false,"IsStopped":true,"IsCreated":false,"Interval":1000,"StackTrace":"AtuadorModel.IniciarRegistrador","Id":"tmrRegistrador_Atu","Ticks":386,"TimeTick":"00:00:00"},"Modulo_ID":"Atu","IP":"192.168.100.13","RequisitarDados":true,"Conectado":false,"QuantidadeBicos":4,"DensidadeHerbicida":1.05,"BicosPulverizadores":[{"ID":"B01","Posicao":1,"Componente":422,"AtuacaoNivelAlto":true,"ComandoAtuar":false,"Comandar":true,"Testando":false,"Funcoes":[21],"LeituraStatusBico":false,"MediaNivelFluxo":0.0,"Leitura":null,"Inicializado":false,"Atuacoes":0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0},{"ID":"B02","Posicao":2,"Componente":422,"AtuacaoNivelAlto":true,"ComandoAtuar":false,"Comandar":true,"Testando":false,"Funcoes":[21],"LeituraStatusBico":false,"MediaNivelFluxo":0.0,"Leitura":null,"Inicializado":false,"Atuacoes":0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0},{"ID":"B03","Posicao":3,"Componente":422,"AtuacaoNivelAlto":true,"ComandoAtuar":false,"Comandar":true,"Testando":false,"Funcoes":[21],"LeituraStatusBico":false,"MediaNivelFluxo":0.0,"Leitura":null,"Inicializado":false,"Atuacoes":0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0},{"ID":"B04","Posicao":4,"Componente":422,"AtuacaoNivelAlto":true,"ComandoAtuar":false,"Comandar":true,"Testando":false,"Funcoes":[21],"LeituraStatusBico":false,"MediaNivelFluxo":0.0,"Leitura":null,"Inicializado":false,"Atuacoes":0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0}],"BombasPressurizadoras":[{"ID":"BOMBA","ComandoAtuar":false,"Componente":325,"LeituraEstado":false,"Comandar":true,"Testando":false,"Funcoes":[14,35,36,37,5],"LeituraPotencia":0.0,"LeituraPressaoSP":0.0,"LeituraPressao":0.0,"Leitura":null,"Inicializado":false}],"Sensores":[{"LogGrafico":[],"ID":"FLXLN","Prioridade":23,"Descricao":"Fluxo na linha principal","Componente":198,"Aferir":true,"DelayAmostragem":300,"Leitura":null,"Inicializado":false,"Testando":false,"Funcoes":[25],"Parametros":[],"UnidadeMedida":"mL/s","LimiteMaximo":0.0,"LimiteMinimo":0.0},{"LogGrafico":[],"ID":"MASRS","Prioridade":3,"Descricao":"Massa do reservatório de herbicida","Componente":532,"Aferir":true,"DelayAmostragem":1000,"Leitura":null,"Inicializado":false,"Testando":false,"Funcoes":[22,23],"Parametros":[],"UnidadeMedida":"Kg","LimiteMaximo":50.0,"LimiteMinimo":5.0},{"LogGrafico":[],"ID":"PRSLN","Prioridade":3,"Descricao":"Pressão na linha principal","Componente":333,"Aferir":true,"DelayAmostragem":1000,"Leitura":null,"Inicializado":false,"Testando":false,"Funcoes":[24],"Parametros":[["Vmin","000.00"],["Vmax","004.50"],["Pmax","174.04"]],"UnidadeMedida":"psi","LimiteMaximo":120.0,"LimiteMinimo":60.0}],"BombaPressurizadora":{"ID":"BOMBA","ComandoAtuar":false,"Componente":325,"LeituraEstado":false,"Comandar":true,"Testando":false,"Funcoes":[14,35,36,37,5],"LeituraPotencia":0.0,"LeituraPressaoSP":0.0,"LeituraPressao":0.0,"Leitura":null,"Inicializado":false},"ScriptDeteccaoErvas":"weed_detector-1_0.py","DadosLeitura":{"Momento":"0001-01-01T00:00:00","Conectado":false,"Mod_ID":null,"QualidadeWifi":0,"LatenciaLoop":0,"BicosPulverizadores":[],"BombasPressurizadoras":[],"SensoresFluxo":[],"SensoresMassa":[],"SensoresPressao":[]},"_MassaRef":0.8,"_MassaLeituraRef":40876.37,"_MassaLeituraExtra":1895800.0,"MassaReservatorio":0.0,"VolumeReservatorio":0.0,"PercentualReservatorio":0.0,"VolumeVazaoAferido":0.0,"_FluxoMlRef":102.0,"_FluxoPulsoRef":80.0,"VazaoFluxoMLpSInstantanea":0.0,"VazaoFluxoMLpSMedia":0.0,"VolumeVazaoML":0.0,"InicioAtuacao":"0001-01-01T00:00:00","TempoAtuado":0.0,"_PressaoVmin":0.0,"_PressaoVmax":4.5,"_PressaoMax":174.045,"PressaoLinha":0.0,"PressaoLinhaCalc":0.0}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -25,7 +25,7 @@
|
|||
<meta name="viewport" content="width=device-width,
|
||||
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<style>
|
||||
#map_833c25a3a62e2b8ca1262dee25ed3a03 {
|
||||
#map_5f4fd292c4d69c95c75af1d5a9f8d951 {
|
||||
position: relative;
|
||||
width: 100.0%;
|
||||
height: 100.0%;
|
||||
|
|
@ -39,14 +39,14 @@
|
|||
<body>
|
||||
|
||||
|
||||
<div class="folium-map" id="map_833c25a3a62e2b8ca1262dee25ed3a03" ></div>
|
||||
<div class="folium-map" id="map_5f4fd292c4d69c95c75af1d5a9f8d951" ></div>
|
||||
|
||||
</body>
|
||||
<script>
|
||||
|
||||
|
||||
var map_833c25a3a62e2b8ca1262dee25ed3a03 = L.map(
|
||||
"map_833c25a3a62e2b8ca1262dee25ed3a03",
|
||||
var map_5f4fd292c4d69c95c75af1d5a9f8d951 = L.map(
|
||||
"map_5f4fd292c4d69c95c75af1d5a9f8d951",
|
||||
{
|
||||
center: [0.0, 0.0],
|
||||
crs: L.CRS.EPSG3857,
|
||||
|
|
@ -59,15 +59,6 @@
|
|||
|
||||
|
||||
|
||||
|
||||
var tile_layer_1e2a9c51c17dbab5c1fa3a1e4841d9bf = L.tileLayer(
|
||||
"https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||
{"attribution": "\u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors", "detectRetina": false, "maxNativeZoom": 19, "maxZoom": 19, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
|
||||
);
|
||||
|
||||
|
||||
tile_layer_1e2a9c51c17dbab5c1fa3a1e4841d9bf.addTo(map_833c25a3a62e2b8ca1262dee25ed3a03);
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
|
@ -87,7 +78,7 @@
|
|||
}
|
||||
trajeto_json_add({"features": []});
|
||||
|
||||
trajeto_json.addTo(map_833c25a3a62e2b8ca1262dee25ed3a03);
|
||||
trajeto_json.addTo(map_5f4fd292c4d69c95c75af1d5a9f8d951);
|
||||
|
||||
function adicionarGeometria(novaGeometria) {
|
||||
trajeto_json.addData(novaGeometria);
|
||||
|
|
@ -145,7 +136,7 @@
|
|||
|
||||
var marcadorDinamico = L.marker([0, 0], {
|
||||
icon: customIcon
|
||||
}).addTo(map_833c25a3a62e2b8ca1262dee25ed3a03);
|
||||
}).addTo(map_5f4fd292c4d69c95c75af1d5a9f8d951);
|
||||
|
||||
// Conectar ao broker MQTT
|
||||
const client = mqtt.connect('ws://localhost:9001'); // Use wss para conexão segura
|
||||
|
|
@ -183,7 +174,7 @@
|
|||
marcadorDinamico.setRotationAngle(angulo);
|
||||
|
||||
adicionarCoordenada("Tj", [novaLongitude, novaLatitude]);
|
||||
map_833c25a3a62e2b8ca1262dee25ed3a03.setView(novaPosicao, map_833c25a3a62e2b8ca1262dee25ed3a03.getZoom());
|
||||
map_5f4fd292c4d69c95c75af1d5a9f8d951.setView(novaPosicao, map_5f4fd292c4d69c95c75af1d5a9f8d951.getZoom());
|
||||
});
|
||||
|
||||
function calcularOrientacao(P1latitude, P1longitude, P2latitude, P2longitude) {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -480,4 +480,4 @@ C:\ZendionInc\agrobot_base\AgroBase\AgroBase\bin\Debug\MathNet.Numerics.xml
|
|||
C:\ZendionInc\agrobot_base\AgroBase\AgroBase\bin\Debug\OpenHardwareMonitorLib.dll
|
||||
C:\ZendionInc\agrobot_base\AgroBase\AgroBase\obj\Debug\AgroBase.Forms.frmA05Config.resources
|
||||
C:\ZendionInc\agrobot_base\AgroBase\AgroBase\obj\Debug\AgroBase.Forms.frmEthernet.resources
|
||||
C:\ZendionINC\agrobot_base\AgroBase\AgroBase\obj\Debug\AgroBase.csproj.Up2Date
|
||||
C:\ZendionInc\agrobot_base\AgroBase\AgroBase\obj\Debug\AgroBase.csproj.CopyComplete
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue