private string GetAgingValuesOutline() { StringBuilder sb = new StringBuilder(); sb.AppendLine("ROVER DATA"); if (ownLatitude.IsInitialized) { sb.AppendLine(ownLatitude.ToString()); } if (ownLongitude.IsInitialized) { sb.AppendLine(ownLongitude.ToString()); } if (ownDepth.IsInitialized) { sb.AppendLine(ownDepth.ToString()); } if (ownBatteryVoltage.IsInitialized) { sb.AppendLine(ownBatteryVoltage.ToString()); } sb.AppendLine(); sb.AppendLine("TARGET DATA"); if (targetLatitude.IsInitialized) { sb.AppendLine(targetLatitude.ToString()); } if (targetLongitude.IsInitialized) { sb.AppendLine(targetLongitude.ToString()); } if (targetRadialError.IsInitialized) { sb.AppendLine(targetRadialError.ToString()); } if (targetTemperature.IsInitialized) { sb.AppendLine(targetTemperature.ToString()); } if (targetDepth.IsInitialized) { sb.AppendLine(targetDepth.ToString()); } if (targetBatVoltage.IsInitialized) { sb.AppendLine(targetBatVoltage.ToString()); } if (targetMSR.IsInitialized) { sb.AppendLine(targetMSR.ToString()); } if (targetPTime.IsInitialized) { sb.AppendLine(targetPTime.ToString()); } return(sb.ToString()); }
public string GetTargetStateDescription() { StringBuilder sb = new StringBuilder(); if (targetFix.IsInitialized) { sb.AppendLine(targetFix.ToString()); } if (targetCourse.IsInitialized) { sb.AppendLine(targetCourse.ToString()); } return(sb.ToString()); }
public string GetSystemStateDescription() { StringBuilder sb = new StringBuilder(); if (primaryGNSSFixRMC.IsInitialized) { sb.AppendLine(primaryGNSSFixRMC.ToString()); } if (distanceToTarget.IsInitialized) { sb.AppendLine(distanceToTarget.ToString()); } if (forwardAzimuthToTarget.IsInitialized) { sb.AppendLine(forwardAzimuthToTarget.ToString()); } if (reverseAzimuthToTarget.IsInitialized) { sb.AppendLine(reverseAzimuthToTarget.ToString()); } foreach (var item in BaseBatStates) { if (item.Value.IsInitialized) { var st = item.Value.ToString(); if (!string.IsNullOrEmpty(st)) { sb.AppendLine(st); } } } return(sb.ToString()); }