Added to Nuget, included bug fixes found along the way

This commit is contained in:
2025-09-27 09:25:52 -05:00
parent 13a3044bbf
commit 1129c6c4be
6 changed files with 127 additions and 24 deletions

View File

@@ -2,6 +2,6 @@
public abstract class BaseGpsInfo {
public GpsCoordinateSystem CoordinateSystem { get; set; } = GpsCoordinateSystem.GeoEtrs89;
public int ReadFrequenty { get; set; }
public int ReadFrequency { get; set; }
}
}

View File

@@ -1,14 +1,16 @@
namespace GpsClient2.Model {
public class ComPortInfo : BaseGpsInfo {
public string ComPort { get; set; } = "ComPort1";
public int BaudRate { get; set; } = 9600;
public ComPortInfo() {
ReadFrequenty = 1000;
ReadFrequency = 1000;
}
public ComPortInfo(string comPort, int readFrequenty = 1000) {
public ComPortInfo(string comPort, int baudRate = 9600, int readFrequency = 1000) {
ComPort = comPort;
ReadFrequenty = readFrequenty;
BaudRate = baudRate;
ReadFrequency = readFrequency;
}
}
}

View File

@@ -3,7 +3,7 @@
public int Timeout { get; set; } = 1000;
public WindowsLocationApiInfo() {
ReadFrequenty = 0;
ReadFrequency = 0;
}
}
}