ardupilot/Tools/ArdupilotMegaPlanner/CommsSerialPort.cs

21 lines
397 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.IO.Ports;
using System.IO;
namespace ArdupilotMega
{
class SerialPort : System.IO.Ports.SerialPort,ICommsSerial
{
public void toggleDTR()
{
DtrEnable = false;
System.Threading.Thread.Sleep(100);
DtrEnable = true;
}
}
}