Switched the serial port over to using the .net frameworks serial port.

Extracted the serial port into it's own class and created a simpler command processing mechanism.
This commit is contained in:
2019-04-29 23:29:57 +01:00
parent da6b7ec55f
commit dc2a24ad25
6 changed files with 204 additions and 90 deletions
@@ -1,15 +1,14 @@
using System;
using ASCOM.Utilities.Interfaces;
using System.IO.Ports;
namespace ASCOM.MeadeAutostar497.Controller
{
public interface ITelescopeController
{
ISerial SerialPort { get; set; }
ISerialProcessor SerialPort { get; set; }
string Port { get; set; }
bool Connected { get; set; }
string CommandString(string command, bool raw);
bool Slewing { get; }
DateTime utcDate { get; set; }
}