The information contained here are property of DIGITAX Automotive Electronics Italy, and extremely confidential. Any disclosure, copying, distribution to third
party is strictly prohibited.
55
if
(InvokeRequired)
{
this
.BeginInvoke(
new
delUpdForm
(UpdForm));
return
;
}
//update texts
if
(_satellites !=
null
&& _satsUpd)
{
lbSats.Items.Clear();
foreach
(GPS.Wrapper41.
SatelliteData
s
in
_satellites)
{
if
(s.PRN != 0)
{
StringBuilder
sb =
new
StringBuilder
();
sb.Append(s.PRN);
sb.Append(
" | "
);
sb.Append(s.Azimut);
sb.Append(
" | "
);
sb.Append(s.Elevation);
sb.Append(
" | "
);
sb.Append(s.SNR);
lbSats.Items.Add(sb.ToString());
}
}
_satsUpd =
false
;
}
if
(_rmcUpd)
{
tbFix.Text = _rmcData.bIsFixing.ToString();
tbDirection.Text = _rmcData.Direction_deg.ToString();
tbLat.Text = _rmcData.Latitude_deg.ToString();
tbLon.Text = _rmcData.Longitude_deg.ToString();
tbSpeed.Text = _rmcData.Speed_kmH.ToString();
tbFixMode.Text = _gsaData.iFixMode.ToString();
tbUsedSats.Text = _gsaData.iSatsUsed.ToString();
tbPDOP.Text = _gsaData.dPDOP.ToString();
tbHDOP.Text = _gsaData.dHDOP.ToString();
_rmcUpd =
false
;
}
if
(_versUpd)
{
tbSwVersion.Text = _swVersion;
tbHwVers.Text = _HwVersion;
_versUpd =
false
;
}
if
(_hwMonUpd)
{
tbAgc.Text = _agc.ToString();
tbAnt.Text = _antennaStatus.ToString();
_hwMonUpd =
false
;
}
}
void
GPSTestForm_Closing(
object
sender,
CancelEventArgs
e)
{
_gps.GPSRelease();
}
private
void
btAskVersion_Click(
object
sender,
EventArgs
e)
{
_gps.GPSAskAntarisVersion();
}
private
void
cbHwMonitor_CheckStateChanged(
object
sender,
EventArgs
e)
{
if
(cbHwMonitor.Checked)
{
_gps.GPSSetHwMonitorRate(3);
}
else
{
_gps.GPSSetHwMonitorRate(0);
}
}
}
}