apresentacao de dados na tela de resultados da operacao

This commit is contained in:
Diego Freitas 2024-05-20 07:16:23 -03:00
parent 5a811047cd
commit b62e6a2fee
261 changed files with 2426 additions and 651 deletions

Binary file not shown.

View File

@ -6,17 +6,17 @@
"AbsoluteMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|c:\\zendioninc\\agrobot_base\\agrobase\\agrobase\\forms\\operacoes\\frmresultadosoperacao.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|solutionrelative:agrobase\\forms\\operacoes\\frmresultadosoperacao.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|C:\\ZendionINC\\agrobot_base\\AgroBase\\agrobase\\models\\operacoes\\operacaomodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|solutionrelative:agrobase\\models\\operacoes\\operacaomodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|c:\\zendioninc\\agrobot_base\\agrobase\\agrobase\\models\\graficointerativomodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|solutionrelative:agrobase\\models\\graficointerativomodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|C:\\ZendionINC\\agrobot_base\\AgroBase\\agrobase\\forms\\operacoes\\frmresultadosoperacao.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|solutionrelative:agrobase\\forms\\operacoes\\frmresultadosoperacao.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|c:\\zendioninc\\agrobot_base\\agrobase\\agrobase\\models\\variaveis.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|solutionrelative:agrobase\\models\\variaveis.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|c:\\zendioninc\\agrobot_base\\agrobase\\agrobase\\models\\operacoes\\operacaomodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C54B41C0-1D21-4E3E-949E-0F86BBC86A33}|AgroBase\\AgroBase.csproj|solutionrelative:agrobase\\models\\operacoes\\operacaomodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
@ -30,7 +30,7 @@
"Children": [
{
"$type": "Document",
"DocumentIndex": 3,
"DocumentIndex": 1,
"Title": "frmResultadosOperacao.cs [Design]",
"DocumentMoniker": "C:\\ZendionINC\\agrobot_base\\AgroBase\\AgroBase\\Forms\\Operacoes\\frmResultadosOperacao.cs",
"RelativeDocumentMoniker": "AgroBase\\Forms\\Operacoes\\frmResultadosOperacao.cs",
@ -49,7 +49,7 @@
"RelativeDocumentMoniker": "AgroBase\\Forms\\Operacoes\\frmResultadosOperacao.cs",
"ToolTip": "C:\\ZendionINC\\agrobot_base\\AgroBase\\AgroBase\\Forms\\Operacoes\\frmResultadosOperacao.cs",
"RelativeToolTip": "AgroBase\\Forms\\Operacoes\\frmResultadosOperacao.cs",
"ViewState": "AQIAAEkAAAAAAAAAAAAAAOIAAAAiAAAA",
"ViewState": "AQIAAM8BAAAAAAAAAAAjwCsCAAAzAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-05-16T17:45:26.13Z",
"IsPinned": true,
@ -58,27 +58,27 @@
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "GraficoInterativoModel.cs",
"DocumentMoniker": "C:\\ZendionINC\\agrobot_base\\AgroBase\\AgroBase\\Models\\GraficoInterativoModel.cs",
"RelativeDocumentMoniker": "AgroBase\\Models\\GraficoInterativoModel.cs",
"ToolTip": "C:\\ZendionINC\\agrobot_base\\AgroBase\\AgroBase\\Models\\GraficoInterativoModel.cs",
"RelativeToolTip": "AgroBase\\Models\\GraficoInterativoModel.cs",
"ViewState": "AQIAAFMAAAAAAAAAAAAkwI4AAAA7AAAA",
"Title": "Variaveis.cs",
"DocumentMoniker": "C:\\ZendionINC\\agrobot_base\\AgroBase\\AgroBase\\Models\\Variaveis.cs",
"RelativeDocumentMoniker": "AgroBase\\Models\\Variaveis.cs",
"ToolTip": "C:\\ZendionINC\\agrobot_base\\AgroBase\\AgroBase\\Models\\Variaveis.cs",
"RelativeToolTip": "AgroBase\\Models\\Variaveis.cs",
"ViewState": "AQIAAAwAAAAAAAAAAAAAACoBAAA4AAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-05-17T11:53:55.974Z",
"WhenOpened": "2024-05-17T19:58:35.467Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"DocumentIndex": 3,
"Title": "OperacaoModel.cs",
"DocumentMoniker": "C:\\ZendionINC\\agrobot_base\\AgroBase\\AgroBase\\Models\\Operacoes\\OperacaoModel.cs",
"RelativeDocumentMoniker": "AgroBase\\Models\\Operacoes\\OperacaoModel.cs",
"ToolTip": "C:\\ZendionINC\\agrobot_base\\AgroBase\\AgroBase\\Models\\Operacoes\\OperacaoModel.cs",
"RelativeToolTip": "AgroBase\\Models\\Operacoes\\OperacaoModel.cs",
"ViewState": "AQIAAF0AAAAAAAAAAAA1wHECAAAoAAAA",
"ViewState": "AQIAAM0DAAAAAAAAAAAjwAIEAAAeAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-05-16T14:00:24.714Z",
"WhenOpened": "2024-05-17T17:59:16.622Z",
"EditorCaption": ""
}
]

View File

@ -28,9 +28,9 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series();
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
this.pnlCamerasSolo = new System.Windows.Forms.Panel();
this.pnlCameraSoloE = new System.Windows.Forms.Panel();
this.picCameraSoloE = new System.Windows.Forms.PictureBox();
@ -85,6 +85,12 @@
this.lblDistanciaEsquerda = new System.Windows.Forms.Label();
this.lblDistanciaDireita = new System.Windows.Forms.Label();
this.chbSonar = new System.Windows.Forms.CheckBox();
this.lblTensao = new System.Windows.Forms.Label();
this.lblCorrente = new System.Windows.Forms.Label();
this.lblRPM = new System.Windows.Forms.Label();
this.lblVelocidade = new System.Windows.Forms.Label();
this.lblPotencia = new System.Windows.Forms.Label();
this.lblKmh = new System.Windows.Forms.Label();
this.pnlCamerasSolo.SuspendLayout();
this.pnlCameraSoloE.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.picCameraSoloE)).BeginInit();
@ -113,19 +119,19 @@
this.pnlCamerasSolo.BackColor = System.Drawing.Color.White;
this.pnlCamerasSolo.Controls.Add(this.pnlCameraSoloE);
this.pnlCamerasSolo.Controls.Add(this.pnlCameraSoloD);
this.pnlCamerasSolo.Location = new System.Drawing.Point(23, 328);
this.pnlCamerasSolo.Margin = new System.Windows.Forms.Padding(2);
this.pnlCamerasSolo.Location = new System.Drawing.Point(31, 404);
this.pnlCamerasSolo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlCamerasSolo.Name = "pnlCamerasSolo";
this.pnlCamerasSolo.Size = new System.Drawing.Size(588, 184);
this.pnlCamerasSolo.Size = new System.Drawing.Size(784, 226);
this.pnlCamerasSolo.TabIndex = 0;
//
// pnlCameraSoloE
//
this.pnlCameraSoloE.Controls.Add(this.picCameraSoloE);
this.pnlCameraSoloE.Location = new System.Drawing.Point(2, 2);
this.pnlCameraSoloE.Margin = new System.Windows.Forms.Padding(2);
this.pnlCameraSoloE.Location = new System.Drawing.Point(3, 2);
this.pnlCameraSoloE.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlCameraSoloE.Name = "pnlCameraSoloE";
this.pnlCameraSoloE.Size = new System.Drawing.Size(289, 178);
this.pnlCameraSoloE.Size = new System.Drawing.Size(385, 219);
this.pnlCameraSoloE.TabIndex = 24;
//
// picCameraSoloE
@ -133,9 +139,9 @@
this.picCameraSoloE.BackColor = System.Drawing.SystemColors.ButtonFace;
this.picCameraSoloE.Dock = System.Windows.Forms.DockStyle.Fill;
this.picCameraSoloE.Location = new System.Drawing.Point(0, 0);
this.picCameraSoloE.Margin = new System.Windows.Forms.Padding(2);
this.picCameraSoloE.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.picCameraSoloE.Name = "picCameraSoloE";
this.picCameraSoloE.Size = new System.Drawing.Size(289, 178);
this.picCameraSoloE.Size = new System.Drawing.Size(385, 219);
this.picCameraSoloE.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.picCameraSoloE.TabIndex = 1;
this.picCameraSoloE.TabStop = false;
@ -143,10 +149,10 @@
// pnlCameraSoloD
//
this.pnlCameraSoloD.Controls.Add(this.picCameraSoloD);
this.pnlCameraSoloD.Location = new System.Drawing.Point(296, 2);
this.pnlCameraSoloD.Margin = new System.Windows.Forms.Padding(2);
this.pnlCameraSoloD.Location = new System.Drawing.Point(395, 2);
this.pnlCameraSoloD.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlCameraSoloD.Name = "pnlCameraSoloD";
this.pnlCameraSoloD.Size = new System.Drawing.Size(289, 178);
this.pnlCameraSoloD.Size = new System.Drawing.Size(385, 219);
this.pnlCameraSoloD.TabIndex = 23;
//
// picCameraSoloD
@ -154,9 +160,9 @@
this.picCameraSoloD.BackColor = System.Drawing.SystemColors.ButtonFace;
this.picCameraSoloD.Dock = System.Windows.Forms.DockStyle.Fill;
this.picCameraSoloD.Location = new System.Drawing.Point(0, 0);
this.picCameraSoloD.Margin = new System.Windows.Forms.Padding(2);
this.picCameraSoloD.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.picCameraSoloD.Name = "picCameraSoloD";
this.picCameraSoloD.Size = new System.Drawing.Size(289, 178);
this.picCameraSoloD.Size = new System.Drawing.Size(385, 219);
this.picCameraSoloD.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.picCameraSoloD.TabIndex = 1;
this.picCameraSoloD.TabStop = false;
@ -165,10 +171,10 @@
//
this.pnlAtuadores.BackColor = System.Drawing.Color.White;
this.pnlAtuadores.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pnlAtuadores.Location = new System.Drawing.Point(23, 518);
this.pnlAtuadores.Margin = new System.Windows.Forms.Padding(2);
this.pnlAtuadores.Location = new System.Drawing.Point(31, 638);
this.pnlAtuadores.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlAtuadores.Name = "pnlAtuadores";
this.pnlAtuadores.Size = new System.Drawing.Size(589, 127);
this.pnlAtuadores.Size = new System.Drawing.Size(784, 155);
this.pnlAtuadores.TabIndex = 1;
this.pnlAtuadores.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlAtuadores_Paint);
//
@ -176,10 +182,10 @@
//
this.btnIniciarOperacao.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnIniciarOperacao.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnIniciarOperacao.Location = new System.Drawing.Point(1119, 585);
this.btnIniciarOperacao.Margin = new System.Windows.Forms.Padding(2);
this.btnIniciarOperacao.Location = new System.Drawing.Point(1492, 720);
this.btnIniciarOperacao.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnIniciarOperacao.Name = "btnIniciarOperacao";
this.btnIniciarOperacao.Size = new System.Drawing.Size(113, 53);
this.btnIniciarOperacao.Size = new System.Drawing.Size(151, 65);
this.btnIniciarOperacao.TabIndex = 25;
this.btnIniciarOperacao.Text = "Iniciar Operação";
this.btnIniciarOperacao.UseVisualStyleBackColor = true;
@ -189,18 +195,18 @@
//
this.chartGraficos.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
chartArea2.Name = "ChartArea1";
this.chartGraficos.ChartAreas.Add(chartArea2);
legend2.Name = "Legend1";
this.chartGraficos.Legends.Add(legend2);
this.chartGraficos.Location = new System.Drawing.Point(640, 7);
this.chartGraficos.Margin = new System.Windows.Forms.Padding(2);
chartArea1.Name = "ChartArea1";
this.chartGraficos.ChartAreas.Add(chartArea1);
legend1.Name = "Legend1";
this.chartGraficos.Legends.Add(legend1);
this.chartGraficos.Location = new System.Drawing.Point(853, 9);
this.chartGraficos.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chartGraficos.Name = "chartGraficos";
series2.ChartArea = "ChartArea1";
series2.Legend = "Legend1";
series2.Name = "Series1";
this.chartGraficos.Series.Add(series2);
this.chartGraficos.Size = new System.Drawing.Size(591, 318);
series1.ChartArea = "ChartArea1";
series1.Legend = "Legend1";
series1.Name = "Series1";
this.chartGraficos.Series.Add(series1);
this.chartGraficos.Size = new System.Drawing.Size(788, 391);
this.chartGraficos.TabIndex = 2;
this.chartGraficos.Text = "chart1";
//
@ -208,9 +214,8 @@
//
this.lblDir_EF.AutoSize = true;
this.lblDir_EF.Location = new System.Drawing.Point(1, 1);
this.lblDir_EF.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDir_EF.Name = "lblDir_EF";
this.lblDir_EF.Size = new System.Drawing.Size(45, 13);
this.lblDir_EF.Size = new System.Drawing.Size(53, 16);
this.lblDir_EF.TabIndex = 9;
this.lblDir_EF.Text = "EF 000º";
//
@ -218,9 +223,8 @@
//
this.lblDir_DF.AutoSize = true;
this.lblDir_DF.Location = new System.Drawing.Point(1, 1);
this.lblDir_DF.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDir_DF.Name = "lblDir_DF";
this.lblDir_DF.Size = new System.Drawing.Size(46, 13);
this.lblDir_DF.Size = new System.Drawing.Size(54, 16);
this.lblDir_DF.TabIndex = 10;
this.lblDir_DF.Text = "DF 000º";
//
@ -228,9 +232,8 @@
//
this.lblDir_DT.AutoSize = true;
this.lblDir_DT.Location = new System.Drawing.Point(1, 2);
this.lblDir_DT.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDir_DT.Name = "lblDir_DT";
this.lblDir_DT.Size = new System.Drawing.Size(47, 13);
this.lblDir_DT.Size = new System.Drawing.Size(55, 16);
this.lblDir_DT.TabIndex = 11;
this.lblDir_DT.Text = "DT 000º";
//
@ -238,9 +241,8 @@
//
this.lblDir_ET.AutoSize = true;
this.lblDir_ET.Location = new System.Drawing.Point(1, 2);
this.lblDir_ET.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDir_ET.Name = "lblDir_ET";
this.lblDir_ET.Size = new System.Drawing.Size(46, 13);
this.lblDir_ET.Size = new System.Drawing.Size(54, 16);
this.lblDir_ET.TabIndex = 12;
this.lblDir_ET.Text = "ET 000º";
//
@ -253,11 +255,11 @@
this.tabControl1.Controls.Add(this.tabInformacoes);
this.tabControl1.Controls.Add(this.tabDeteccoes);
this.tabControl1.Controls.Add(this.tabPulverizador);
this.tabControl1.Location = new System.Drawing.Point(640, 331);
this.tabControl1.Margin = new System.Windows.Forms.Padding(2);
this.tabControl1.Location = new System.Drawing.Point(853, 407);
this.tabControl1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(471, 314);
this.tabControl1.Size = new System.Drawing.Size(628, 386);
this.tabControl1.TabIndex = 17;
//
// tabMapa
@ -272,69 +274,64 @@
this.tabMapa.Controls.Add(this.pnlAnguloGPS);
this.tabMapa.Controls.Add(this.pnlAnguloMagnetometro);
this.tabMapa.Controls.Add(this.lblMagnetometro);
this.tabMapa.Location = new System.Drawing.Point(4, 22);
this.tabMapa.Margin = new System.Windows.Forms.Padding(2);
this.tabMapa.Location = new System.Drawing.Point(4, 25);
this.tabMapa.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabMapa.Name = "tabMapa";
this.tabMapa.Padding = new System.Windows.Forms.Padding(2);
this.tabMapa.Size = new System.Drawing.Size(463, 288);
this.tabMapa.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabMapa.Size = new System.Drawing.Size(620, 357);
this.tabMapa.TabIndex = 0;
this.tabMapa.Text = "Mapa";
//
// lblGPSprecisao
//
this.lblGPSprecisao.AutoSize = true;
this.lblGPSprecisao.Location = new System.Drawing.Point(4, 116);
this.lblGPSprecisao.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblGPSprecisao.Location = new System.Drawing.Point(5, 143);
this.lblGPSprecisao.Name = "lblGPSprecisao";
this.lblGPSprecisao.Size = new System.Drawing.Size(86, 13);
this.lblGPSprecisao.Size = new System.Drawing.Size(105, 16);
this.lblGPSprecisao.TabIndex = 31;
this.lblGPSprecisao.Text = "Precisão: 0,00 m";
//
// lblGPSaltitude
//
this.lblGPSaltitude.AutoSize = true;
this.lblGPSaltitude.Location = new System.Drawing.Point(4, 142);
this.lblGPSaltitude.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblGPSaltitude.Location = new System.Drawing.Point(5, 175);
this.lblGPSaltitude.Name = "lblGPSaltitude";
this.lblGPSaltitude.Size = new System.Drawing.Size(74, 13);
this.lblGPSaltitude.Size = new System.Drawing.Size(88, 16);
this.lblGPSaltitude.TabIndex = 30;
this.lblGPSaltitude.Text = "Altitude: 0,0 m";
//
// lblGPSvelocidade
//
this.lblGPSvelocidade.AutoSize = true;
this.lblGPSvelocidade.Location = new System.Drawing.Point(4, 129);
this.lblGPSvelocidade.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblGPSvelocidade.Location = new System.Drawing.Point(5, 159);
this.lblGPSvelocidade.Name = "lblGPSvelocidade";
this.lblGPSvelocidade.Size = new System.Drawing.Size(80, 13);
this.lblGPSvelocidade.Size = new System.Drawing.Size(92, 16);
this.lblGPSvelocidade.TabIndex = 29;
this.lblGPSvelocidade.Text = "Vel.: 0,00 km/h";
//
// lblGPSsatelites
//
this.lblGPSsatelites.AutoSize = true;
this.lblGPSsatelites.Location = new System.Drawing.Point(4, 103);
this.lblGPSsatelites.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblGPSsatelites.Location = new System.Drawing.Point(5, 127);
this.lblGPSsatelites.Name = "lblGPSsatelites";
this.lblGPSsatelites.Size = new System.Drawing.Size(54, 13);
this.lblGPSsatelites.Size = new System.Drawing.Size(67, 16);
this.lblGPSsatelites.TabIndex = 28;
this.lblGPSsatelites.Text = "0 satélites";
//
// pnlMapa
//
this.pnlMapa.Location = new System.Drawing.Point(104, 2);
this.pnlMapa.Margin = new System.Windows.Forms.Padding(2);
this.pnlMapa.Location = new System.Drawing.Point(139, 2);
this.pnlMapa.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlMapa.Name = "pnlMapa";
this.pnlMapa.Size = new System.Drawing.Size(359, 286);
this.pnlMapa.Size = new System.Drawing.Size(479, 352);
this.pnlMapa.TabIndex = 0;
//
// lblGPS
//
this.lblGPS.AutoSize = true;
this.lblGPS.Location = new System.Drawing.Point(4, 2);
this.lblGPS.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblGPS.Location = new System.Drawing.Point(5, 2);
this.lblGPS.Name = "lblGPS";
this.lblGPS.Size = new System.Drawing.Size(29, 13);
this.lblGPS.Size = new System.Drawing.Size(35, 16);
this.lblGPS.TabIndex = 19;
this.lblGPS.Text = "GPS";
//
@ -343,10 +340,10 @@
this.pnlAnguloGPS.BackColor = System.Drawing.Color.White;
this.pnlAnguloGPS.BackgroundImage = global::AgroBase.Properties.Resources.rosa_dos_ventos;
this.pnlAnguloGPS.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pnlAnguloGPS.Location = new System.Drawing.Point(7, 18);
this.pnlAnguloGPS.Margin = new System.Windows.Forms.Padding(2);
this.pnlAnguloGPS.Location = new System.Drawing.Point(9, 22);
this.pnlAnguloGPS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlAnguloGPS.Name = "pnlAnguloGPS";
this.pnlAnguloGPS.Size = new System.Drawing.Size(78, 84);
this.pnlAnguloGPS.Size = new System.Drawing.Size(104, 103);
this.pnlAnguloGPS.TabIndex = 18;
this.pnlAnguloGPS.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlAnguloGPS_Paint);
//
@ -355,31 +352,30 @@
this.pnlAnguloMagnetometro.BackColor = System.Drawing.Color.White;
this.pnlAnguloMagnetometro.BackgroundImage = global::AgroBase.Properties.Resources.rosa_dos_ventos;
this.pnlAnguloMagnetometro.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pnlAnguloMagnetometro.Location = new System.Drawing.Point(7, 203);
this.pnlAnguloMagnetometro.Margin = new System.Windows.Forms.Padding(2);
this.pnlAnguloMagnetometro.Location = new System.Drawing.Point(9, 250);
this.pnlAnguloMagnetometro.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlAnguloMagnetometro.Name = "pnlAnguloMagnetometro";
this.pnlAnguloMagnetometro.Size = new System.Drawing.Size(78, 84);
this.pnlAnguloMagnetometro.Size = new System.Drawing.Size(104, 103);
this.pnlAnguloMagnetometro.TabIndex = 20;
this.pnlAnguloMagnetometro.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlAnguloMagnetometro_Paint);
//
// lblMagnetometro
//
this.lblMagnetometro.AutoSize = true;
this.lblMagnetometro.Location = new System.Drawing.Point(4, 188);
this.lblMagnetometro.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblMagnetometro.Location = new System.Drawing.Point(5, 231);
this.lblMagnetometro.Name = "lblMagnetometro";
this.lblMagnetometro.Size = new System.Drawing.Size(75, 13);
this.lblMagnetometro.Size = new System.Drawing.Size(94, 16);
this.lblMagnetometro.TabIndex = 21;
this.lblMagnetometro.Text = "Magnetômetro";
//
// tabInformacoes
//
this.tabInformacoes.Controls.Add(this.gridDados);
this.tabInformacoes.Location = new System.Drawing.Point(4, 22);
this.tabInformacoes.Margin = new System.Windows.Forms.Padding(2);
this.tabInformacoes.Location = new System.Drawing.Point(4, 25);
this.tabInformacoes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabInformacoes.Name = "tabInformacoes";
this.tabInformacoes.Padding = new System.Windows.Forms.Padding(2);
this.tabInformacoes.Size = new System.Drawing.Size(463, 288);
this.tabInformacoes.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabInformacoes.Size = new System.Drawing.Size(620, 357);
this.tabInformacoes.TabIndex = 1;
this.tabInformacoes.Text = "Informações";
this.tabInformacoes.UseVisualStyleBackColor = true;
@ -388,22 +384,22 @@
//
this.gridDados.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.gridDados.Dock = System.Windows.Forms.DockStyle.Fill;
this.gridDados.Location = new System.Drawing.Point(2, 2);
this.gridDados.Margin = new System.Windows.Forms.Padding(2);
this.gridDados.Location = new System.Drawing.Point(3, 2);
this.gridDados.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.gridDados.Name = "gridDados";
this.gridDados.RowHeadersWidth = 51;
this.gridDados.RowTemplate.Height = 24;
this.gridDados.Size = new System.Drawing.Size(459, 284);
this.gridDados.Size = new System.Drawing.Size(614, 353);
this.gridDados.TabIndex = 0;
//
// tabDeteccoes
//
this.tabDeteccoes.Controls.Add(this.pnlDeteccoesRua);
this.tabDeteccoes.Location = new System.Drawing.Point(4, 22);
this.tabDeteccoes.Margin = new System.Windows.Forms.Padding(2);
this.tabDeteccoes.Location = new System.Drawing.Point(4, 25);
this.tabDeteccoes.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabDeteccoes.Name = "tabDeteccoes";
this.tabDeteccoes.Padding = new System.Windows.Forms.Padding(2);
this.tabDeteccoes.Size = new System.Drawing.Size(463, 288);
this.tabDeteccoes.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabDeteccoes.Size = new System.Drawing.Size(620, 357);
this.tabDeteccoes.TabIndex = 2;
this.tabDeteccoes.Text = "Detecção rua";
this.tabDeteccoes.UseVisualStyleBackColor = true;
@ -412,18 +408,18 @@
//
this.pnlDeteccoesRua.Controls.Add(this.picSonar);
this.pnlDeteccoesRua.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnlDeteccoesRua.Location = new System.Drawing.Point(2, 2);
this.pnlDeteccoesRua.Margin = new System.Windows.Forms.Padding(2);
this.pnlDeteccoesRua.Location = new System.Drawing.Point(3, 2);
this.pnlDeteccoesRua.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlDeteccoesRua.Name = "pnlDeteccoesRua";
this.pnlDeteccoesRua.Size = new System.Drawing.Size(459, 284);
this.pnlDeteccoesRua.Size = new System.Drawing.Size(614, 353);
this.pnlDeteccoesRua.TabIndex = 0;
//
// picSonar
//
this.picSonar.Location = new System.Drawing.Point(13, 13);
this.picSonar.Margin = new System.Windows.Forms.Padding(2);
this.picSonar.Location = new System.Drawing.Point(17, 16);
this.picSonar.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.picSonar.Name = "picSonar";
this.picSonar.Size = new System.Drawing.Size(434, 260);
this.picSonar.Size = new System.Drawing.Size(579, 320);
this.picSonar.TabIndex = 0;
this.picSonar.TabStop = false;
//
@ -433,11 +429,11 @@
this.tabPulverizador.Controls.Add(this.nudPressaoSP);
this.tabPulverizador.Controls.Add(this.btnDesligarBomba);
this.tabPulverizador.Controls.Add(this.btnLigarBomba);
this.tabPulverizador.Location = new System.Drawing.Point(4, 22);
this.tabPulverizador.Margin = new System.Windows.Forms.Padding(2);
this.tabPulverizador.Location = new System.Drawing.Point(4, 25);
this.tabPulverizador.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPulverizador.Name = "tabPulverizador";
this.tabPulverizador.Padding = new System.Windows.Forms.Padding(2);
this.tabPulverizador.Size = new System.Drawing.Size(463, 288);
this.tabPulverizador.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.tabPulverizador.Size = new System.Drawing.Size(620, 357);
this.tabPulverizador.TabIndex = 3;
this.tabPulverizador.Text = "Pulverizador";
this.tabPulverizador.UseVisualStyleBackColor = true;
@ -446,25 +442,24 @@
//
this.lblPressaoSP.AutoSize = true;
this.lblPressaoSP.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPressaoSP.Location = new System.Drawing.Point(18, 11);
this.lblPressaoSP.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblPressaoSP.Location = new System.Drawing.Point(24, 14);
this.lblPressaoSP.Name = "lblPressaoSP";
this.lblPressaoSP.Size = new System.Drawing.Size(72, 13);
this.lblPressaoSP.Size = new System.Drawing.Size(89, 16);
this.lblPressaoSP.TabIndex = 29;
this.lblPressaoSP.Text = "Pressão SP";
//
// nudPressaoSP
//
this.nudPressaoSP.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.nudPressaoSP.Location = new System.Drawing.Point(18, 27);
this.nudPressaoSP.Margin = new System.Windows.Forms.Padding(2);
this.nudPressaoSP.Location = new System.Drawing.Point(24, 33);
this.nudPressaoSP.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.nudPressaoSP.Maximum = new decimal(new int[] {
200,
0,
0,
0});
this.nudPressaoSP.Name = "nudPressaoSP";
this.nudPressaoSP.Size = new System.Drawing.Size(79, 19);
this.nudPressaoSP.Size = new System.Drawing.Size(105, 22);
this.nudPressaoSP.TabIndex = 28;
this.nudPressaoSP.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.nudPressaoSP.ValueChanged += new System.EventHandler(this.nudPressaoSP_ValueChanged);
@ -472,10 +467,10 @@
// btnDesligarBomba
//
this.btnDesligarBomba.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnDesligarBomba.Location = new System.Drawing.Point(244, 17);
this.btnDesligarBomba.Margin = new System.Windows.Forms.Padding(2);
this.btnDesligarBomba.Location = new System.Drawing.Point(325, 21);
this.btnDesligarBomba.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnDesligarBomba.Name = "btnDesligarBomba";
this.btnDesligarBomba.Size = new System.Drawing.Size(104, 28);
this.btnDesligarBomba.Size = new System.Drawing.Size(139, 34);
this.btnDesligarBomba.TabIndex = 27;
this.btnDesligarBomba.Text = "Desligar Bomba";
this.btnDesligarBomba.UseVisualStyleBackColor = true;
@ -484,10 +479,10 @@
// btnLigarBomba
//
this.btnLigarBomba.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnLigarBomba.Location = new System.Drawing.Point(118, 17);
this.btnLigarBomba.Margin = new System.Windows.Forms.Padding(2);
this.btnLigarBomba.Location = new System.Drawing.Point(157, 21);
this.btnLigarBomba.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnLigarBomba.Name = "btnLigarBomba";
this.btnLigarBomba.Size = new System.Drawing.Size(104, 28);
this.btnLigarBomba.Size = new System.Drawing.Size(139, 34);
this.btnLigarBomba.TabIndex = 26;
this.btnLigarBomba.Text = "Ligar Bomba";
this.btnLigarBomba.UseVisualStyleBackColor = true;
@ -496,10 +491,10 @@
// pnlCameraRua
//
this.pnlCameraRua.Controls.Add(this.picCameraRua);
this.pnlCameraRua.Location = new System.Drawing.Point(140, 23);
this.pnlCameraRua.Margin = new System.Windows.Forms.Padding(2);
this.pnlCameraRua.Location = new System.Drawing.Point(187, 28);
this.pnlCameraRua.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlCameraRua.Name = "pnlCameraRua";
this.pnlCameraRua.Size = new System.Drawing.Size(357, 286);
this.pnlCameraRua.Size = new System.Drawing.Size(476, 352);
this.pnlCameraRua.TabIndex = 22;
//
// picCameraRua
@ -507,9 +502,9 @@
this.picCameraRua.BackColor = System.Drawing.SystemColors.ButtonFace;
this.picCameraRua.Dock = System.Windows.Forms.DockStyle.Fill;
this.picCameraRua.Location = new System.Drawing.Point(0, 0);
this.picCameraRua.Margin = new System.Windows.Forms.Padding(2);
this.picCameraRua.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.picCameraRua.Name = "picCameraRua";
this.picCameraRua.Size = new System.Drawing.Size(357, 286);
this.picCameraRua.Size = new System.Drawing.Size(476, 352);
this.picCameraRua.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.picCameraRua.TabIndex = 0;
this.picCameraRua.TabStop = false;
@ -521,19 +516,19 @@
this.pnlDir_EF.Controls.Add(this.btnRef_EF);
this.pnlDir_EF.Controls.Add(this.lblDir_EF);
this.pnlDir_EF.Location = new System.Drawing.Point(0, 0);
this.pnlDir_EF.Margin = new System.Windows.Forms.Padding(2);
this.pnlDir_EF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlDir_EF.Name = "pnlDir_EF";
this.pnlDir_EF.Size = new System.Drawing.Size(150, 162);
this.pnlDir_EF.Size = new System.Drawing.Size(200, 199);
this.pnlDir_EF.TabIndex = 23;
//
// chbLivre_EF
//
this.chbLivre_EF.AutoSize = true;
this.chbLivre_EF.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.chbLivre_EF.Location = new System.Drawing.Point(101, 144);
this.chbLivre_EF.Margin = new System.Windows.Forms.Padding(2);
this.chbLivre_EF.Location = new System.Drawing.Point(135, 177);
this.chbLivre_EF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chbLivre_EF.Name = "chbLivre_EF";
this.chbLivre_EF.Size = new System.Drawing.Size(49, 17);
this.chbLivre_EF.Size = new System.Drawing.Size(58, 20);
this.chbLivre_EF.TabIndex = 17;
this.chbLivre_EF.Text = "Livre";
this.chbLivre_EF.UseVisualStyleBackColor = true;
@ -541,20 +536,20 @@
// chbCmd_EF
//
this.chbCmd_EF.AutoSize = true;
this.chbCmd_EF.Location = new System.Drawing.Point(3, 144);
this.chbCmd_EF.Margin = new System.Windows.Forms.Padding(2);
this.chbCmd_EF.Location = new System.Drawing.Point(4, 177);
this.chbCmd_EF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chbCmd_EF.Name = "chbCmd_EF";
this.chbCmd_EF.Size = new System.Drawing.Size(68, 17);
this.chbCmd_EF.Size = new System.Drawing.Size(83, 20);
this.chbCmd_EF.TabIndex = 15;
this.chbCmd_EF.Text = "Controlar";
this.chbCmd_EF.UseVisualStyleBackColor = true;
//
// btnRef_EF
//
this.btnRef_EF.Location = new System.Drawing.Point(111, 2);
this.btnRef_EF.Margin = new System.Windows.Forms.Padding(2);
this.btnRef_EF.Location = new System.Drawing.Point(148, 2);
this.btnRef_EF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnRef_EF.Name = "btnRef_EF";
this.btnRef_EF.Size = new System.Drawing.Size(37, 19);
this.btnRef_EF.Size = new System.Drawing.Size(49, 23);
this.btnRef_EF.TabIndex = 13;
this.btnRef_EF.Text = "REF";
this.btnRef_EF.UseVisualStyleBackColor = true;
@ -565,20 +560,20 @@
this.pnlDir_ET.Controls.Add(this.chbCmd_ET);
this.pnlDir_ET.Controls.Add(this.btnRef_ET);
this.pnlDir_ET.Controls.Add(this.lblDir_ET);
this.pnlDir_ET.Location = new System.Drawing.Point(0, 162);
this.pnlDir_ET.Margin = new System.Windows.Forms.Padding(2);
this.pnlDir_ET.Location = new System.Drawing.Point(0, 199);
this.pnlDir_ET.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlDir_ET.Name = "pnlDir_ET";
this.pnlDir_ET.Size = new System.Drawing.Size(150, 162);
this.pnlDir_ET.Size = new System.Drawing.Size(200, 199);
this.pnlDir_ET.TabIndex = 24;
//
// chbLivre_ET
//
this.chbLivre_ET.AutoSize = true;
this.chbLivre_ET.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.chbLivre_ET.Location = new System.Drawing.Point(101, 144);
this.chbLivre_ET.Margin = new System.Windows.Forms.Padding(2);
this.chbLivre_ET.Location = new System.Drawing.Point(135, 177);
this.chbLivre_ET.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chbLivre_ET.Name = "chbLivre_ET";
this.chbLivre_ET.Size = new System.Drawing.Size(49, 17);
this.chbLivre_ET.Size = new System.Drawing.Size(58, 20);
this.chbLivre_ET.TabIndex = 16;
this.chbLivre_ET.Text = "Livre";
this.chbLivre_ET.UseVisualStyleBackColor = true;
@ -586,20 +581,20 @@
// chbCmd_ET
//
this.chbCmd_ET.AutoSize = true;
this.chbCmd_ET.Location = new System.Drawing.Point(3, 144);
this.chbCmd_ET.Margin = new System.Windows.Forms.Padding(2);
this.chbCmd_ET.Location = new System.Drawing.Point(4, 177);
this.chbCmd_ET.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chbCmd_ET.Name = "chbCmd_ET";
this.chbCmd_ET.Size = new System.Drawing.Size(68, 17);
this.chbCmd_ET.Size = new System.Drawing.Size(83, 20);
this.chbCmd_ET.TabIndex = 15;
this.chbCmd_ET.Text = "Controlar";
this.chbCmd_ET.UseVisualStyleBackColor = true;
//
// btnRef_ET
//
this.btnRef_ET.Location = new System.Drawing.Point(111, 2);
this.btnRef_ET.Margin = new System.Windows.Forms.Padding(2);
this.btnRef_ET.Location = new System.Drawing.Point(148, 2);
this.btnRef_ET.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnRef_ET.Name = "btnRef_ET";
this.btnRef_ET.Size = new System.Drawing.Size(37, 19);
this.btnRef_ET.Size = new System.Drawing.Size(49, 23);
this.btnRef_ET.TabIndex = 13;
this.btnRef_ET.Text = "REF";
this.btnRef_ET.UseVisualStyleBackColor = true;
@ -610,20 +605,20 @@
this.pnlDir_DT.Controls.Add(this.chbCmd_DT);
this.pnlDir_DT.Controls.Add(this.btnRef_DT);
this.pnlDir_DT.Controls.Add(this.lblDir_DT);
this.pnlDir_DT.Location = new System.Drawing.Point(486, 162);
this.pnlDir_DT.Margin = new System.Windows.Forms.Padding(2);
this.pnlDir_DT.Location = new System.Drawing.Point(648, 199);
this.pnlDir_DT.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlDir_DT.Name = "pnlDir_DT";
this.pnlDir_DT.Size = new System.Drawing.Size(150, 162);
this.pnlDir_DT.Size = new System.Drawing.Size(200, 199);
this.pnlDir_DT.TabIndex = 24;
//
// chbLivre_DT
//
this.chbLivre_DT.AutoSize = true;
this.chbLivre_DT.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.chbLivre_DT.Location = new System.Drawing.Point(101, 144);
this.chbLivre_DT.Margin = new System.Windows.Forms.Padding(2);
this.chbLivre_DT.Location = new System.Drawing.Point(135, 177);
this.chbLivre_DT.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chbLivre_DT.Name = "chbLivre_DT";
this.chbLivre_DT.Size = new System.Drawing.Size(49, 17);
this.chbLivre_DT.Size = new System.Drawing.Size(58, 20);
this.chbLivre_DT.TabIndex = 19;
this.chbLivre_DT.Text = "Livre";
this.chbLivre_DT.UseVisualStyleBackColor = true;
@ -631,20 +626,20 @@
// chbCmd_DT
//
this.chbCmd_DT.AutoSize = true;
this.chbCmd_DT.Location = new System.Drawing.Point(3, 144);
this.chbCmd_DT.Margin = new System.Windows.Forms.Padding(2);
this.chbCmd_DT.Location = new System.Drawing.Point(4, 177);
this.chbCmd_DT.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chbCmd_DT.Name = "chbCmd_DT";
this.chbCmd_DT.Size = new System.Drawing.Size(68, 17);
this.chbCmd_DT.Size = new System.Drawing.Size(83, 20);
this.chbCmd_DT.TabIndex = 13;
this.chbCmd_DT.Text = "Controlar";
this.chbCmd_DT.UseVisualStyleBackColor = true;
//
// btnRef_DT
//
this.btnRef_DT.Location = new System.Drawing.Point(111, 2);
this.btnRef_DT.Margin = new System.Windows.Forms.Padding(2);
this.btnRef_DT.Location = new System.Drawing.Point(148, 2);
this.btnRef_DT.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnRef_DT.Name = "btnRef_DT";
this.btnRef_DT.Size = new System.Drawing.Size(37, 19);
this.btnRef_DT.Size = new System.Drawing.Size(49, 23);
this.btnRef_DT.TabIndex = 12;
this.btnRef_DT.Text = "REF";
this.btnRef_DT.UseVisualStyleBackColor = true;
@ -655,20 +650,20 @@
this.pnlDir_DF.Controls.Add(this.chbCmd_DF);
this.pnlDir_DF.Controls.Add(this.btnRef_DF);
this.pnlDir_DF.Controls.Add(this.lblDir_DF);
this.pnlDir_DF.Location = new System.Drawing.Point(486, 0);
this.pnlDir_DF.Margin = new System.Windows.Forms.Padding(2);
this.pnlDir_DF.Location = new System.Drawing.Point(648, 0);
this.pnlDir_DF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pnlDir_DF.Name = "pnlDir_DF";
this.pnlDir_DF.Size = new System.Drawing.Size(150, 162);
this.pnlDir_DF.Size = new System.Drawing.Size(200, 199);
this.pnlDir_DF.TabIndex = 24;
//
// chbLivre_DF
//
this.chbLivre_DF.AutoSize = true;
this.chbLivre_DF.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.chbLivre_DF.Location = new System.Drawing.Point(101, 144);
this.chbLivre_DF.Margin = new System.Windows.Forms.Padding(2);
this.chbLivre_DF.Location = new System.Drawing.Point(135, 177);
this.chbLivre_DF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chbLivre_DF.Name = "chbLivre_DF";
this.chbLivre_DF.Size = new System.Drawing.Size(49, 17);
this.chbLivre_DF.Size = new System.Drawing.Size(58, 20);
this.chbLivre_DF.TabIndex = 18;
this.chbLivre_DF.Text = "Livre";
this.chbLivre_DF.UseVisualStyleBackColor = true;
@ -676,20 +671,20 @@
// chbCmd_DF
//
this.chbCmd_DF.AutoSize = true;
this.chbCmd_DF.Location = new System.Drawing.Point(3, 144);
this.chbCmd_DF.Margin = new System.Windows.Forms.Padding(2);
this.chbCmd_DF.Location = new System.Drawing.Point(4, 177);
this.chbCmd_DF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chbCmd_DF.Name = "chbCmd_DF";
this.chbCmd_DF.Size = new System.Drawing.Size(68, 17);
this.chbCmd_DF.Size = new System.Drawing.Size(83, 20);
this.chbCmd_DF.TabIndex = 14;
this.chbCmd_DF.Text = "Controlar";
this.chbCmd_DF.UseVisualStyleBackColor = true;
//
// btnRef_DF
//
this.btnRef_DF.Location = new System.Drawing.Point(111, 2);
this.btnRef_DF.Margin = new System.Windows.Forms.Padding(2);
this.btnRef_DF.Location = new System.Drawing.Point(148, 2);
this.btnRef_DF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnRef_DF.Name = "btnRef_DF";
this.btnRef_DF.Size = new System.Drawing.Size(37, 19);
this.btnRef_DF.Size = new System.Drawing.Size(49, 23);
this.btnRef_DF.TabIndex = 13;
this.btnRef_DF.Text = "REF";
this.btnRef_DF.UseVisualStyleBackColor = true;
@ -698,10 +693,9 @@
//
this.lblDistanciaEsquerda.AutoSize = true;
this.lblDistanciaEsquerda.Font = new System.Drawing.Font("Mongolian Baiti", 9.25F, System.Drawing.FontStyle.Bold);
this.lblDistanciaEsquerda.Location = new System.Drawing.Point(154, 7);
this.lblDistanciaEsquerda.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDistanciaEsquerda.Location = new System.Drawing.Point(205, 9);
this.lblDistanciaEsquerda.Name = "lblDistanciaEsquerda";
this.lblDistanciaEsquerda.Size = new System.Drawing.Size(161, 14);
this.lblDistanciaEsquerda.Size = new System.Drawing.Size(184, 16);
this.lblDistanciaEsquerda.TabIndex = 26;
this.lblDistanciaEsquerda.Text = "Distancia Esq: 00.00 cm";
//
@ -709,30 +703,94 @@
//
this.lblDistanciaDireita.AutoSize = true;
this.lblDistanciaDireita.Font = new System.Drawing.Font("Mongolian Baiti", 9F, System.Drawing.FontStyle.Bold);
this.lblDistanciaDireita.Location = new System.Drawing.Point(339, 7);
this.lblDistanciaDireita.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblDistanciaDireita.Location = new System.Drawing.Point(452, 9);
this.lblDistanciaDireita.Name = "lblDistanciaDireita";
this.lblDistanciaDireita.Size = new System.Drawing.Size(143, 13);
this.lblDistanciaDireita.Size = new System.Drawing.Size(179, 16);
this.lblDistanciaDireita.TabIndex = 27;
this.lblDistanciaDireita.Text = "Distancia Dir: 00.00 cm";
//
// chbSonar
//
this.chbSonar.AutoSize = true;
this.chbSonar.Location = new System.Drawing.Point(227, 311);
this.chbSonar.Margin = new System.Windows.Forms.Padding(2);
this.chbSonar.Location = new System.Drawing.Point(303, 383);
this.chbSonar.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chbSonar.Name = "chbSonar";
this.chbSonar.Size = new System.Drawing.Size(183, 17);
this.chbSonar.Size = new System.Drawing.Size(229, 20);
this.chbSonar.TabIndex = 28;
this.chbSonar.Text = "Desvio de obstáculos automático";
this.chbSonar.UseVisualStyleBackColor = true;
//
// lblTensao
//
this.lblTensao.AutoSize = true;
this.lblTensao.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblTensao.Location = new System.Drawing.Point(1481, 432);
this.lblTensao.Name = "lblTensao";
this.lblTensao.Size = new System.Drawing.Size(164, 46);
this.lblTensao.TabIndex = 29;
this.lblTensao.Text = "42,00 V";
//
// lblCorrente
//
this.lblCorrente.AutoSize = true;
this.lblCorrente.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblCorrente.Location = new System.Drawing.Point(1481, 478);
this.lblCorrente.Name = "lblCorrente";
this.lblCorrente.Size = new System.Drawing.Size(164, 46);
this.lblCorrente.TabIndex = 30;
this.lblCorrente.Text = "10,00 A";
//
// lblRPM
//
this.lblRPM.AutoSize = true;
this.lblRPM.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblRPM.Location = new System.Drawing.Point(1481, 524);
this.lblRPM.Name = "lblRPM";
this.lblRPM.Size = new System.Drawing.Size(170, 46);
this.lblRPM.TabIndex = 31;
this.lblRPM.Text = "45 RPM";
//
// lblVelocidade
//
this.lblVelocidade.AutoSize = true;
this.lblVelocidade.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblVelocidade.Location = new System.Drawing.Point(1481, 570);
this.lblVelocidade.Name = "lblVelocidade";
this.lblVelocidade.Size = new System.Drawing.Size(124, 46);
this.lblVelocidade.TabIndex = 32;
this.lblVelocidade.Text = "10,00";
//
// lblPotencia
//
this.lblPotencia.AutoSize = true;
this.lblPotencia.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPotencia.Location = new System.Drawing.Point(1481, 616);
this.lblPotencia.Name = "lblPotencia";
this.lblPotencia.Size = new System.Drawing.Size(125, 46);
this.lblPotencia.TabIndex = 33;
this.lblPotencia.Text = "100%";
//
// lblKmh
//
this.lblKmh.AutoSize = true;
this.lblKmh.Location = new System.Drawing.Point(1611, 591);
this.lblKmh.Name = "lblKmh";
this.lblKmh.Size = new System.Drawing.Size(36, 16);
this.lblKmh.TabIndex = 20;
this.lblKmh.Text = "km/h";
//
// frmOperacaoManual
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1243, 649);
this.ClientSize = new System.Drawing.Size(1657, 799);
this.Controls.Add(this.lblKmh);
this.Controls.Add(this.lblPotencia);
this.Controls.Add(this.lblVelocidade);
this.Controls.Add(this.lblRPM);
this.Controls.Add(this.lblCorrente);
this.Controls.Add(this.lblTensao);
this.Controls.Add(this.btnIniciarOperacao);
this.Controls.Add(this.chbSonar);
this.Controls.Add(this.lblDistanciaEsquerda);
@ -746,7 +804,7 @@
this.Controls.Add(this.chartGraficos);
this.Controls.Add(this.pnlAtuadores);
this.Controls.Add(this.pnlCamerasSolo);
this.Margin = new System.Windows.Forms.Padding(2);
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "frmOperacaoManual";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Operação Manual";
@ -840,5 +898,11 @@
private System.Windows.Forms.CheckBox chbLivre_DF;
private System.Windows.Forms.PictureBox picSonar;
private System.Windows.Forms.CheckBox chbSonar;
private System.Windows.Forms.Label lblTensao;
private System.Windows.Forms.Label lblCorrente;
private System.Windows.Forms.Label lblRPM;
private System.Windows.Forms.Label lblVelocidade;
private System.Windows.Forms.Label lblPotencia;
private System.Windows.Forms.Label lblKmh;
}
}

View File

@ -122,6 +122,12 @@ namespace AgroBase.Forms.Operacoes
lblGPSvelocidade.Text = "Vel.: " + GPSService.UltimaLeitura.Velocidade.ToString("0.00") + " km/h";
lblGPSaltitude.Text = "Altitude: " + GPSService.UltimaLeitura.Altitude.ToString("0.0") + " m";
lblTensao.Text = PZEMService.UltimaLeitura.Tensao.ToString("0.00") + " v";
lblCorrente.Text = PZEMService.UltimaLeitura.Corrente.ToString("0.00") + " A";
lblRPM.Text = Variaveis.OperacaoEmAndamento.DispMov.Dados.Motores.Average(x => x.RPM).ToString("0") + " rpm";
lblVelocidade.Text = Variaveis.OperacaoEmAndamento.DispMov.Dados.Motores.Average(x => x.VelocidadeInstantanea).ToString("0.00");
lblPotencia.Text = Variaveis.OperacaoEmAndamento.DispMov.Dados.Motores.Average(x => x.Potencia).ToString("0.00") + "%";
chbSonar.Enabled = Variaveis.OperacaoEmAndamento.DispSen.Dados.Sensores.Any(x => x.Componente == S_Code.sSNR && x.Inicializado);
if (!chbSonar.Enabled)
{

File diff suppressed because it is too large Load Diff

View File

@ -34,8 +34,22 @@ namespace AgroBase.Forms.Operacoes
DateTime MomentoAtual = DateTime.Now;
Timer tmrPlay = new Timer() { Interval = 1000 };
MapasModel Mapa = new MapasModel();
bool[] SeriesVisiveisAtuador = new bool[] { false, true, true, true, true, false };
private int idxMomentoAtual
{
get
{
return LogsOperacao.IndexOf(LogsOperacao.FirstOrDefault(x => x.Momento == MomentoAtual));
}
}
private int idxMomentoFiltro = 0;
private List<int> idxValoresFiltro = new List<int>();
private string[] cmbItemsBuscaPor = new string[] { "Pico Máximo", "Pico Mínimo" };
GraficoInterativoModel graficoMovGeral;
GraficoInterativoModel graficoMovTemperatura;
GraficoInterativoModel graficoMovPotencia;
GraficoInterativoModel graficoMovVelocidade;
GraficoInterativoModel graficoAtu;
GraficoInterativoModel graficoSen;
@ -114,6 +128,7 @@ namespace AgroBase.Forms.Operacoes
InicializarGraficos();
InicializarCombosBusca();
AtualizarDadosMomento();
@ -124,6 +139,161 @@ namespace AgroBase.Forms.Operacoes
{
var Momentos = LogsOperacao.Select(x => x.Momento.ToString("mm:ss:fff")).ToList();
graficoMovGeral = new GraficoInterativoModel(chartMovGeral, Momentos, new List<GraficoInterativoSerieModel>()
{
new GraficoInterativoSerieModel()
{
Titulo = "RPM SP",
Valores = LogsMovimentacao.GroupBy(x => new {ID = x.ComponenteID, Momento = x.Momento}).Select(x => x.Average(y => y.RPM_SP)).ToList(),
Visivel = true,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "EF",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "EF").Select(x => x.RPM).ToList(),
Visivel = true,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "EF Offset",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "EF").Select(x => x.RPM_Offset).ToList(),
Visivel = false,
MostrarValor = true,
},
new GraficoInterativoSerieModel()
{
Titulo = "ET",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "ET").Select(x => x.RPM).ToList(),
Visivel = true,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "ET Offset",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "ET").Select(x => x.RPM_Offset).ToList(),
Visivel = false,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DT",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DT").Select(x => x.RPM).ToList(),
Visivel = true,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DT Offset",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DT").Select(x => x.RPM_Offset).ToList(),
Visivel = false,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DF",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DF").Select(x => x.RPM).ToList(),
Visivel = true,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DF Offset",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DF").Select(x => x.RPM_Offset).ToList(),
Visivel = false,
MostrarValor = true
},
});
graficoMovTemperatura = new GraficoInterativoModel(chartMovTemperatura, Momentos, new List<GraficoInterativoSerieModel>()
{
new GraficoInterativoSerieModel()
{
Titulo = "EF",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "EF").Select(x => x.Temperatura).ToList(),
Visivel = true
},
new GraficoInterativoSerieModel()
{
Titulo = "ET",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "ET").Select(x => x.Temperatura).ToList(),
Visivel = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DT",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DT").Select(x => x.Temperatura).ToList(),
Visivel = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DF",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DF").Select(x => x.Temperatura).ToList(),
Visivel = true
},
});
graficoMovVelocidade = new GraficoInterativoModel(chartMovVelocidade, Momentos, new List<GraficoInterativoSerieModel>()
{
new GraficoInterativoSerieModel()
{
Titulo = "EF",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "EF").Select(x => x.Velocidade).ToList(),
Visivel = true
},
new GraficoInterativoSerieModel()
{
Titulo = "ET",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "ET").Select(x => x.Velocidade).ToList(),
Visivel = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DT",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DT").Select(x => x.Velocidade).ToList(),
Visivel = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DF",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DF").Select(x => x.Velocidade).ToList(),
Visivel = true
},
});
graficoMovPotencia = new GraficoInterativoModel(chartMovPotencia, Momentos, new List<GraficoInterativoSerieModel>()
{
new GraficoInterativoSerieModel()
{
Titulo = "EF",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "EF").Select(x => x.Potencia).ToList(),
Visivel = true,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "ET",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "ET").Select(x => x.Potencia).ToList(),
Visivel = true,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DT",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DT").Select(x => x.Potencia).ToList(),
Visivel = true,
MostrarValor = true
},
new GraficoInterativoSerieModel()
{
Titulo = "DF",
Valores = LogsMovimentacao.Where(x => x.ComponenteID == "DF").Select(x => x.Potencia).ToList(),
Visivel = true,
MostrarValor = true
},
});
graficoAtu = new GraficoInterativoModel(chartAtuador, Momentos, new List<GraficoInterativoSerieModel>()
{
new GraficoInterativoSerieModel()
@ -229,6 +399,112 @@ namespace AgroBase.Forms.Operacoes
});
}
private void InicializarCombosBusca()
{
CarregarInformacoesBusca(gpbMOV_Geral_Filtro, graficoMovGeral.Series.Select(x => x.Titulo).ToArray());
CarregarInformacoesBusca(gpbSEN_Filtro, graficoSen.Series.Select(x => x.Titulo).ToArray());
}
private void CarregarInformacoesBusca(GroupBox gpb, string[] Componentes)
{
ComboBox cmbFiltro = gpb.Controls.OfType<ComboBox>().FirstOrDefault(x => x.Name.Contains("Filtro"));
cmbFiltro.Items.Clear();
cmbFiltro.Items.AddRange(cmbItemsBuscaPor);
ComboBox cmbComponente = gpb.Controls.OfType<ComboBox>().FirstOrDefault(x => x.Name.Contains("Componente"));
cmbComponente.Items.Clear();
cmbComponente.Items.AddRange(Componentes);
cmbComponente.SelectedIndexChanged += cmbComponente_SelectedIndexChanged;
Button btnRedefinir = gpb.Controls.OfType<Button>().FirstOrDefault(x => x.Name.Contains("Redefinir"));
btnRedefinir.Click += btnRedefinirBusca_Click;
Button btnBuscar = gpb.Controls.OfType<Button>().FirstOrDefault(x => x.Name.Contains("Buscar"));
btnBuscar.Click += btnBuscarMomento_Click;
Button btnAnterior = gpb.Controls.OfType<Button>().FirstOrDefault(x => x.Name.Contains("Anterior"));
btnAnterior.Click += btnAnteriorFiltro_Click; ;
Button btnProximo = gpb.Controls.OfType<Button>().FirstOrDefault(x => x.Name.Contains("Proximo"));
btnProximo.Click += btnProximoFiltro_Click; ;
}
private void btnAnteriorFiltro_Click(object sender, EventArgs e)
{
if (idxValoresFiltro.Any() && idxMomentoFiltro > 0)
{
idxMomentoFiltro--;
trbMomento.Value = idxValoresFiltro[idxMomentoFiltro];
AtualizarDadosMomento();
}
}
private void btnProximoFiltro_Click(object sender, EventArgs e)
{
if (idxValoresFiltro.Any() && idxMomentoFiltro < idxValoresFiltro.Count() - 1)
{
idxMomentoFiltro++;
trbMomento.Value = idxValoresFiltro[idxMomentoFiltro];
AtualizarDadosMomento();
}
}
private void cmbComponente_SelectedIndexChanged(object sender, EventArgs e)
{
AtualizarDadosMomento();
}
private void btnRedefinirBusca_Click(object sender, EventArgs e)
{
GroupBox gpb = (GroupBox)((Button)sender).Parent;
ComboBox cmbFiltro = gpb.Controls.OfType<ComboBox>().FirstOrDefault(x => x.Name.Contains("Filtro"));
cmbFiltro.SelectedIndex = -1;
ComboBox cmbComponente = gpb.Controls.OfType<ComboBox>().FirstOrDefault(x => x.Name.Contains("Componente"));
cmbComponente.SelectedIndex = -1;
idxMomentoFiltro = 0;
idxValoresFiltro = new List<int>();
AtualizarDadosMomento();
}
private void btnBuscarMomento_Click(object sender, EventArgs e)
{
GroupBox gpb = (GroupBox)((Button)sender).Parent;
ComboBox cmbFiltro = gpb.Controls.OfType<ComboBox>().FirstOrDefault(x => x.Name.Contains("Filtro"));
if (cmbFiltro.SelectedIndex < 0)
{
return;
}
ComboBox cmbComponente = gpb.Controls.OfType<ComboBox>().FirstOrDefault(x => x.Name.Contains("Componente"));
if (cmbComponente.SelectedIndex < 0)
{
return;
}
GraficoInterativoModel grafico = null;
if (gpb.Name.Contains("SEN"))
{
grafico = graficoSen;
}
else if (gpb.Name.Contains("MOV_Geral"))
{
grafico = graficoMovGeral;
}
if (grafico != null)
{
var Dados = grafico.Series.FirstOrDefault(x => x.Titulo == cmbComponente.Text).Valores.Select((x, i) => new { valor = x, idx = i }).ToList();
if (cmbFiltro.SelectedIndex == 0)
{
Dados = Dados.OrderByDescending(x => x.valor).ToList();
}
else if (cmbFiltro.SelectedIndex == 1)
{
Dados = Dados.OrderBy(x => x.valor).ToList();
}
idxValoresFiltro = Dados.Select(x => x.idx).ToList();
idxMomentoFiltro = 0;
trbMomento.Value = idxValoresFiltro[idxMomentoFiltro];
}
}
private string DeserializarDadosOperacao(string caminho, string arquivo)
{
string opPath = caminho.Replace("data.lgop", arquivo) + ".json";
@ -262,22 +538,72 @@ namespace AgroBase.Forms.Operacoes
txtMomento.Text = LogsOperacao.FirstOrDefault(x => x.Momento == MomentoAtual).Momento.ToString("HH:mm:ss");
CarregarImagemCamera(picCameraCaminho, pathImagensCaminho);
CarregarImagemCamera(picCameraSoloE, pathImagensSoloE);
CarregarImagemCamera(picCameraSoloD, pathImagensSoloD);
AtualizarInformacoesOperacao();
AtualizarInformacoesCameras();
AtualizarInformacoesGPS();
AtualizarInformacoesDirecional();
AtualizarInformacoesMovimentacao();
AtualizarInformacoesAtuador();
AtualizarInformacoesSensoriamento();
}
private void AtualizarInformacoesOperacao()
{
var Log = LogsOperacao[idxMomentoAtual];
FuncoesGlobais.PreencheValorProgressBar(pgbPercentualBateria, Log.PorcentagemBateria);
FuncoesGlobais.PreencheValorProgressBar(pgbBateriaConsumida, Log.BateriaConsumida);
txtTempoMovimento.Text = FuncoesGlobais.ConverterSegundosParaHHmmss((int)Log.TempoMovimento);
txtDistanciaPercorrida.Text = Log.DistanciaPercorrida.Sum().ToString("0.00");
txtHerbicidaConsumido.Text = Log.HerbicidaConsumido.ToString("0.00");
txtStatusOperacao.Text = Log.StatusOperacao.ToString();
txtStatusCarro.Text = Log.StatusCarro.ToString();
txtHerbicidaPorErva.Text = Log.HerbicidaPorErva.ToString("0.00");
txtDentroRua.Text = Log.DentroDaRua ? "Sim" : "Não";
txtDirecaoCarro.Text = Log.Direcao.ToString();
txtErvasNoRadar.Text = Log.ErvasNoRadar.ToString();
pnlOrientacaoCaminho.Invalidate();
pnlOrientacaoDif.Invalidate();
}
private void AtualizarInformacoesCameras()
{
CarregarImagemCamera(picCameraCaminho, pathImagensCaminho);
CarregarImagemCamera(picCameraSoloE, pathImagensSoloE);
CarregarImagemCamera(picCameraSoloD, pathImagensSoloD);
}
private void AtualizarInformacoesGPS()
{
var Log = LogsGPS.FirstOrDefault(x => x.Momento == MomentoAtual);
txtGPS_Altitude.Text = (Log?.Altitude ?? 0).ToString();
txtGPS_Data.Text = (Log?.DataHora ?? MomentoAtual).ToString("dd/MM HH:mm:ss");
txtGPS_Latitude.Text = (Log?.Latitude ?? 0).ToString();
txtGPS_Longitude.Text = (Log?.Longitude ?? 0).ToString();
txtGPS_Orientacao.Text = (Log?.Orientacao ?? 0).ToString();
txtGPS_Precisao.Text = (Log?.PrecisaoHorizontal ?? 0).ToString();
txtGPS_Satelites.Text = (Log?.NumeroSatelites ?? 0).ToString();
txtGPS_Velocidade.Text = (Log?.Velocidade ?? 0).ToString();
GPSService.EnviarCoordenadasParaMapa(Log?.Latitude ?? 0, Log?.Longitude ?? 0, Log?.Orientacao ?? 0);
pnlOrientacaoGPS.Invalidate();
}
private void AtualizarInformacoesDirecional()
{
AtualizarInformacoesMotorDirecional("DF");
AtualizarInformacoesMotorDirecional("DT");
AtualizarInformacoesMotorDirecional("EF");
AtualizarInformacoesMotorDirecional("ET");
pnlOrientacaoDirecional.Invalidate();
AtualizarInformacoesAtuador();
AtualizarInformacoesSensoriamento();
pnlOrientacaoMagnetometro.Invalidate();
pnlOrientacaoDirecional.Invalidate();
}
private void AtualizarInformacoesMotorDirecional(string ID)
@ -285,7 +611,7 @@ namespace AgroBase.Forms.Operacoes
var Log = LogsDirecional.Where(x => x.ComponenteID == ID).FirstOrDefault(x => x.Momento == MomentoAtual);
double Angulo = Log?.Angulo ?? 0;
double Multiplicador = (Log?.Sentido ?? Enuns.Sentido.Parado) == Enuns.Sentido.Antihorario ? -1 : 1;
double Multiplicador = (Log?.Sentido ?? Enuns.Sentido.Parado) == Enuns.Sentido.Horario ? 1 : -1;
Image img = Resources.roda_superior;
if (ID.StartsWith("D"))
{
@ -312,39 +638,71 @@ namespace AgroBase.Forms.Operacoes
txtControlar.Text = (Log?.Controlar ?? false) ? "Sim" : "Não";
}
private void AtualizarInformacoesGPS()
private void AtualizarInformacoesMovimentacao()
{
var Log = LogsGPS.FirstOrDefault(x => x.Momento == MomentoAtual);
txtGPS_Altitude.Text = (Log?.Altitude ?? 0).ToString();
txtGPS_Data.Text = (Log?.DataHora ?? MomentoAtual).ToString("dd/MM HH:mm:ss");
txtGPS_Latitude.Text = (Log?.Latitude ?? 0).ToString();
txtGPS_Longitude.Text = (Log?.Longitude ?? 0).ToString();
txtGPS_Orientacao.Text = (Log?.Orientacao ?? 0).ToString();
txtGPS_Precisao.Text = (Log?.PrecisaoHorizontal ?? 0).ToString();
txtGPS_Satelites.Text = (Log?.NumeroSatelites ?? 0).ToString();
txtGPS_Velocidade.Text = (Log?.Velocidade ?? 0).ToString();
var Logs = LogsMovimentacao.Where(x => x.Momento == MomentoAtual).ToList();
GPSService.EnviarCoordenadasParaMapa(Log?.Latitude ?? 0, Log?.Longitude ?? 0, Log?.Orientacao ?? 0);
graficoMovGeral.AtualizarDados(idxMomentoAtual);
graficoMovTemperatura.AtualizarDados(idxMomentoAtual);
graficoMovPotencia.AtualizarDados(idxMomentoAtual);
graficoMovVelocidade.AtualizarDados(idxMomentoAtual);
pnlOrientacaoGPS.Invalidate();
AtulizarDadosMotorMovimentacao("DF");
AtulizarDadosMotorMovimentacao("DT");
AtulizarDadosMotorMovimentacao("EF");
AtulizarDadosMotorMovimentacao("ET");
}
private void AtulizarDadosMotorMovimentacao(string ID)
{
var Log = LogsMovimentacao.FirstOrDefault(x => x.Momento == MomentoAtual && x.ComponenteID == ID);
GroupBox gpbRpm = FuncoesGlobais.FindControlRecursive<GroupBox>(tabMovGreal, "gpbMOV_Geral_" + ID);
CheckBox chbAlm = FuncoesGlobais.FindControlRecursive<CheckBox>(gpbRpm, "chbMOV_Alm_" + ID);
chbAlm.Checked = Log.Alarme;
TextBox txtSentidoSP = FuncoesGlobais.FindControlRecursive<TextBox>(gpbRpm, "txtMOV_SentidoSP_" + ID);
txtSentidoSP.Text = Log.Sentido_SP.ToString();
TextBox txtSentido = FuncoesGlobais.FindControlRecursive<TextBox>(gpbRpm, "txtMOV_Sentido_" + ID);
txtSentido.Text = Log.Sentido.ToString();
GroupBox gpbTmp = FuncoesGlobais.FindControlRecursive<GroupBox>(tabMovTemperatura, "gpbMOV_Temperatura_" + ID);
TextBox txtAtual = FuncoesGlobais.FindControlRecursive<TextBox>(gpbTmp, "txtMOV_TemperaturaAt_" + ID);
txtAtual.Text = Log.Temperatura.ToString();
TextBox txtMinima = FuncoesGlobais.FindControlRecursive<TextBox>(gpbTmp, "txtMOV_TemperaturaMn_" + ID);
txtMinima.Text = LogsMovimentacao.Where(x => x.Momento <= MomentoAtual && x.ComponenteID == ID).Min(x => x.Temperatura).ToString("0.00");
TextBox txtMaxima = FuncoesGlobais.FindControlRecursive<TextBox>(gpbTmp, "txtMOV_TemperaturaMx_" + ID);
txtMaxima.Text = LogsMovimentacao.Where(x => x.Momento <= MomentoAtual && x.ComponenteID == ID).Max(x => x.Temperatura).ToString("0.00");
txtMOV_Temperatura_Media.Text = LogsMovimentacao.Where(x => x.Momento <= MomentoAtual).Average(x => x.Temperatura).ToString("0.00");
txtMOV_Temperatura_Mediana.Text = FuncoesMatematicas.CalcularMediana(LogsMovimentacao.Where(x => x.Momento <= MomentoAtual).Select(x => x.Temperatura).ToList()).ToString("0.00");
txtMOV_Temperatura_Moda.Text = FuncoesMatematicas.CalcularModa(LogsMovimentacao.Where(x => x.Momento <= MomentoAtual).Select(x => x.Temperatura).ToList()).ToString("0.00");
}
private void AtualizarInformacoesAtuador()
{
var LogsModulo = LogsAtuador.ToList();
var Log = LogsModulo.FirstOrDefault(x => x.Momento == MomentoAtual);
graficoAtu.AtualizarDados(idxMomentoAtual);
graficoAtu.AtualizarDados(LogsModulo.IndexOf(Log));
FuncoesGlobais.PreencheValorProgressBar(pgbPercentualReservatorio, LogsAtuador[idxMomentoAtual].PercentualReservatorio);
pnlAtuadores.Invalidate();
}
private void AtualizarInformacoesSensoriamento()
{
var LogsModulo = LogsSensoriamento.ToList();
var Log = LogsModulo.FirstOrDefault(x => x.Momento == MomentoAtual);
graficoSen.AtualizarDados(idxMomentoAtual);
graficoSen.AtualizarDados(LogsModulo.IndexOf(Log));
if (cmbSen_Componente.SelectedIndex > -1)
{
var Valores = graficoSen.Series.FirstOrDefault(x => x.Titulo == cmbSen_Componente.Text).Valores.Take(idxMomentoAtual + 1).ToList();
txtSen_Atual.Text = Valores[idxMomentoAtual].ToString("0.00");
txtSen_Media.Text = Valores.Average().ToString("0.00");
txtSen_Mediana.Text = FuncoesMatematicas.CalcularMediana(Valores).ToString("0.00");
txtSen_Moda.Text = FuncoesMatematicas.CalcularModa(Valores).ToString("0.00");
txtSen_Minimo.Text = Valores.Min().ToString("0.00");
txtSen_Maximo.Text = Valores.Max().ToString("0.00");
}
pnlOrientacaoMagnetometro.Invalidate();
}
@ -370,6 +728,20 @@ namespace AgroBase.Forms.Operacoes
FuncoesGlobais.DesenharInclinacao((Panel)sender, e, (float)Angulo, -90);
}
private void pnlOrientacaoCaminho_Paint(object sender, PaintEventArgs e)
{
var Log = LogsOperacao.FirstOrDefault(x => x.Momento == MomentoAtual);
double Angulo = Log?.AnguloRua ?? 0;
FuncoesGlobais.DesenharInclinacao((Panel)sender, e, (float)Angulo, -90);
}
private void pnlOrientacaoDif_Paint(object sender, PaintEventArgs e)
{
var Logs = LogsOperacao.Where(x => x.Momento == MomentoAtual).ToList();
double Angulo = Logs.Any() ? Logs.Average(x => x.AnguloDif) : 0;
FuncoesGlobais.DesenharInclinacao((Panel)sender, e, (float)Angulo, 90);
}
private void pnlAtuadores_Paint(object sender, PaintEventArgs e)
{
var Log = LogsAtuador.FirstOrDefault(x => x.Momento == MomentoAtual);
@ -445,7 +817,7 @@ namespace AgroBase.Forms.Operacoes
g.FillEllipse(smallCircleBrush, smallCircleXPosition, smallCircleYPosition, smallCircleDiameter, smallCircleDiameter);
}
}
}
}

View File

@ -27,6 +27,7 @@ namespace AgroBase.Models
public List<string> Momentos { get; set; }
public List<GraficoInterativoSerieModel> Series { get; set; }
public int Idx { get; set; }
private int _idxMeio = 0;
private Chart Inicializar(Chart chart)
@ -48,6 +49,8 @@ namespace AgroBase.Models
chart.ChartAreas[0].AxisX.ScrollBar.IsPositionedInside = true;
chart.ChartAreas[0].AxisY.ScrollBar.IsPositionedInside = true;
chart.ChartAreas[0].AxisY.LabelStyle.Format = "0.00";
return chart;
}
@ -84,16 +87,18 @@ namespace AgroBase.Models
Idx = _idx;
int startIdx, endIdx;
(startIdx, endIdx) = DefineInicioFimLogs(Idx, Momentos.Count());
_idxMeio = (endIdx - startIdx) / 2;
Minimo = 0;
Maximo = 0;
Minimo = double.MaxValue;
Maximo = double.MinValue;
chart = Inicializar(chart);
foreach (var Serie in Series)
{
var _valores = Serie.Valores.Skip(startIdx).Take(endIdx + 1).ToList();
PopularSerieGrafico(chart, Serie.Titulo, Momentos, _valores);
var _momentos = Momentos.GetRange(startIdx, endIdx - startIdx + 1).ToList();
var _valores = Serie.Valores.GetRange(startIdx, endIdx - startIdx + 1).ToList();
PopularSerieGrafico(chart, Serie.Titulo, _momentos, _valores);
}
}
@ -127,7 +132,7 @@ namespace AgroBase.Models
Valores = Visivel ? Valores : Momentos.Select(x => 0.0).ToList();
var serie = new Series(Titulo);
var serie = new Series(Titulo + (Series[chart.Series.Count].MostrarValor ? (" - " + Valores[_idxMeio].ToString("0.00")) : ""));
serie.Points.DataBindXY(Momentos, Valores);
serie.ChartType = SeriesChartType.Line;
serie.BorderWidth = Visivel ? 1 : 0;
@ -137,7 +142,7 @@ namespace AgroBase.Models
chart.Legends.Last().Docking = Docking.Right;
Minimo = Valores.Min() < Minimo ? Valores.Min() : Minimo;
Maximo = Valores.Min() > Maximo ? Valores.Max() : Maximo;
Maximo = Valores.Max() > Maximo ? Valores.Max() : Maximo;
chart.ChartAreas[0].AxisY.Minimum = Minimo - 5;
chart.ChartAreas[0].AxisY.Maximum = Maximo + 5;
@ -150,5 +155,6 @@ namespace AgroBase.Models
public string Titulo { get; set; }
public List<double> Valores { get; set; }
public bool Visivel { get; set; }
public bool MostrarValor { get; set; }
}
}

View File

@ -478,7 +478,7 @@ namespace AgroBase.Models
double b = GPSService.DistanciaEntrePontos(pontoAtual, P1);
double c = GPSService.DistanciaEntrePontos(P0, P1);
double distancia = FuncoesGlobais.CalcularAlturaTriangulo(a, b, c);
double distancia = FuncoesMatematicas.CalcularAlturaTriangulo(a, b, c);
distancia -= (VariaveisEquipamento.Largura / 2.0 / 100.0);
@ -779,9 +779,9 @@ namespace AgroBase.Models
private GPSModel CalcularNovoWaypoint(GPSModel posicaoAtual, double angulo, double distancia)
{
double anguloRad = FuncoesGlobais.ConvertDegreesToRadians(angulo);
double anguloRad = FuncoesMatematicas.ConvertDegreesToRadians(angulo);
double deltaLatitude = Math.Cos(anguloRad) * distancia / 111111; // Conversão para graus
double deltaLongitude = Math.Sin(anguloRad) * distancia / (111111 * Math.Cos(FuncoesGlobais.ConvertDegreesToRadians(posicaoAtual.Latitude)));
double deltaLongitude = Math.Sin(anguloRad) * distancia / (111111 * Math.Cos(FuncoesMatematicas.ConvertDegreesToRadians(posicaoAtual.Latitude)));
return new GPSModel
{

View File

@ -124,9 +124,9 @@ namespace AgroBase.Models.Modules
{
get
{
double tensao = FuncoesGlobais.Map(_LeituraPressao, 0, 4095, 0, 3300) / 1000.0;
double tensao = FuncoesMatematicas.Map(_LeituraPressao, 0, 4095, 0, 3300) / 1000.0;
double pressao = FuncoesGlobais.Map(tensao, _PressaoVmin, _PressaoVmax, 0, _PressaoMax);
double pressao = FuncoesMatematicas.Map(tensao, _PressaoVmin, _PressaoVmax, 0, _PressaoMax);
return pressao;
}

View File

@ -702,7 +702,7 @@ namespace AgroBase.Models
RPM = Motor.RPM,
Corrente = Motor.Corrente,
Potencia = Motor.Potencia,
Potencia_Offset = Motor.RPM_Offset,
RPM_Offset = Motor.RPM_Offset,
Temperatura = Motor.Temperatura,
Tensao = Motor.Tensao,
Sentido_SP = Motor.Sentido_SP,
@ -741,15 +741,15 @@ namespace AgroBase.Models
SenSensoriamentoLogModel logSen = new SenSensoriamentoLogModel()
{
Momento = Agora,
Barramento3v3Corrente = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB3V" && x.Inicializado)?.Leituras[0] ?? -1,
Barramento3v3Tensao = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB3V" && x.Inicializado)?.Leituras[1] ?? -1,
Barramento5vCorrente = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB5V" && x.Inicializado)?.Leituras[0] ?? -1,
Barramento5vTensao = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB5V" && x.Inicializado)?.Leituras[1] ?? -1,
Barramento7v2Corrente = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB7V2" && x.Inicializado)?.Leituras[0] ?? -1,
Barramento7v2Tensao = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB7V2" && x.Inicializado)?.Leituras[1] ?? -1,
Barramento12vCorrente = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB12V" && x.Inicializado)?.Leituras[0] ?? -1,
Barramento12vTensao = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB12V" && x.Inicializado)?.Leituras[1] ?? -1,
OrientacaoMagnetica = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "SMAG" && x.Inicializado)?.Leituras[0] ?? -1,
Barramento3v3Corrente = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB3V" && x.Inicializado)?.Leituras?[0] ?? -1,
Barramento3v3Tensao = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB3V" && x.Inicializado)?.Leituras?[1] ?? -1,
Barramento5vCorrente = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB5V" && x.Inicializado)?.Leituras?[0] ?? -1,
Barramento5vTensao = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB5V" && x.Inicializado)?.Leituras?[1] ?? -1,
Barramento7v2Corrente = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB7V2" && x.Inicializado)?.Leituras?[0] ?? -1,
Barramento7v2Tensao = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB7V2" && x.Inicializado)?.Leituras?[1] ?? -1,
Barramento12vCorrente = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB12V" && x.Inicializado)?.Leituras?[0] ?? -1,
Barramento12vTensao = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "AB12V" && x.Inicializado)?.Leituras?[1] ?? -1,
OrientacaoMagnetica = DispSen.Dados.Sensores.FirstOrDefault(x => x.ID == "SMAG" && x.Inicializado)?.Leituras?[0] ?? -1,
};
SalvarLog(DispSen.Dispositivo.ToString(), logSen, false);
@ -1078,7 +1078,7 @@ namespace AgroBase.Models
public double RPM { get; set; }
public double Velocidade { get; set; }
public double Potencia { get; set; }
public double Potencia_Offset { get; set; }
public double RPM_Offset { get; set; }
public Sentido Sentido_SP { get; set; }
public Sentido Sentido { get; set; }
public double Temperatura { get; set; }

View File

@ -105,6 +105,20 @@ namespace AgroBase.Models
}
public static class VariaveisPortas
{
public static int GPS { get; } = 6512;
public static int CameraSolo { get; } = 6522;
public static int CameraCaminho { get; } = 6544;
public static int SocketSolo { get; } = 6568;
public static int SocketCaminho { get; } = 6588;
}
public static class VariaveisEquipamento
{
public static double Largura { get; } = 80;
}
public static class FuncoesGlobais
{
public static string TimestampToDate(double timestamp, string Formatacao = "HH:mm:ss.fff")
@ -123,11 +137,6 @@ namespace AgroBase.Models
return formattedDate;
}
public static double Map(double valor, double deMin, double deMax, double paraMin, double paraMax)
{
return paraMin + (valor - deMin) * (paraMax - paraMin) / (deMax - deMin);
}
public static T FindControlRecursive<T>(Control parent, string controlName) where T : Control
{
foreach (Control child in parent.Controls)
@ -145,12 +154,6 @@ namespace AgroBase.Models
return null; // Retorna null se o controle não for encontrado
}
public static double ConvertDegreesToRadians(double degrees)
{
double radians = (Math.PI / 180) * degrees;
return (radians);
}
public static void PreencheValorProgressBar(ProgressBar pgb, double Valor)
{
pgb.Value =
@ -160,24 +163,7 @@ namespace AgroBase.Models
pgb.Minimum;
}
public static double CalcularAlturaTriangulo(double a, double b, double c)
{
// Verifica se os lados formam um triângulo válido
if (a + b <= c || a + c <= b || b + c <= a)
{
return 0;
}
// Calcule a área do triângulo usando a fórmula de Herão
double s = (a + b + c) / 2.0; // Semiperímetro
double area = Math.Sqrt(s * (s - a) * (s - b) * (s - c));
// Calcule a altura em relação à base c
double altura = (2 * area) / c;
return altura;
}
// Método para salvar o frame atual em JPEG
public static void SalvarFrameJPEG(Bitmap frame, string caminhoArquivo)
{
@ -310,21 +296,71 @@ namespace AgroBase.Models
}
}
public static string ConverterSegundosParaHHmmss(int totalSeconds)
{
TimeSpan timeSpan = TimeSpan.FromSeconds(totalSeconds);
return timeSpan.ToString(@"hh\:mm\:ss");
}
}
public static class VariaveisPortas
public static class FuncoesMatematicas
{
public static int GPS { get; } = 6512;
public static int CameraSolo { get; } = 6522;
public static int CameraCaminho { get; } = 6544;
public static int SocketSolo { get; } = 6568;
public static int SocketCaminho { get; } = 6588;
}
public static double Map(double valor, double deMin, double deMax, double paraMin, double paraMax)
{
return paraMin + (valor - deMin) * (paraMax - paraMin) / (deMax - deMin);
}
public static double ConvertDegreesToRadians(double degrees)
{
double radians = (Math.PI / 180) * degrees;
return (radians);
}
public static double CalcularAlturaTriangulo(double a, double b, double c)
{
// Verifica se os lados formam um triângulo válido
if (a + b <= c || a + c <= b || b + c <= a)
{
return 0;
}
// Calcule a área do triângulo usando a fórmula de Herão
double s = (a + b + c) / 2.0; // Semiperímetro
double area = Math.Sqrt(s * (s - a) * (s - b) * (s - c));
// Calcule a altura em relação à base c
double altura = (2 * area) / c;
return altura;
}
public static double CalcularMediana(List<double> numbers)
{
numbers.Sort();
int count = numbers.Count;
if (count % 2 == 0)
{
// Se count é par, a mediana é a média dos dois elementos do meio
double middle1 = numbers[count / 2 - 1];
double middle2 = numbers[count / 2];
return (middle1 + middle2) / 2.0;
}
else
{
// Se count é ímpar, a mediana é o elemento do meio
return numbers[count / 2];
}
}
public static double CalcularModa(List<double> numbers)
{
return numbers.GroupBy(n => n)
.OrderByDescending(g => g.Count())
.First()
.Key;
}
public static class VariaveisEquipamento
{
public static double Largura { get; } = 80;
}
}

View File

@ -122,7 +122,7 @@ namespace AgroBase.Services
private static async Task<bool> ReceberDados()
{
EnviarComando(PortaPZEM, ComandoAquisicaoDados());
await Task.Delay(5000);
await Task.Delay(1000);
return await ReceberDados();
}
@ -295,7 +295,7 @@ namespace AgroBase.Services
var almMin_raw = "0x" + resposta[17].ToString("X") + resposta[18].ToString("X");
modelo.AlarmeTensaoMin = almMin_raw == "0xFFFF";
double percent = FuncoesGlobais.Map(modelo.Tensao, TensaoMinima, TensaoMaxima, 0, 100);
double percent = FuncoesMatematicas.Map(modelo.Tensao, TensaoMinima, TensaoMaxima, 0, 100);
Variaveis.OperacaoEmAndamento.Sensoriamento.PorcentagemBateria = percent;
frmInstancial.frmAcompanhamento.AtualizarSensores("Bateria: " + modelo.Tensao.ToString("0.00") + " V - " + modelo.Corrente.ToString("0.00") + " A - " + modelo.Potencia.ToString("0.00") + " W");

View File

@ -0,0 +1 @@
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"Id":"1517","Name":"17_05_2024_10_05_17","Length":0.0,"Dist1":0.0,"Dist2":0.0},"geometry":{"id":null,"type":"LineString","coordinates":[[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,0.0],[0.0,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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Some files were not shown because too many files have changed in this diff Show More