mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-07 08:28:30 -04:00
6bd3aec55f
Add logging system - re andrew radford move libs add tlog support to georef images. experimental antenna tracking - pololu maestro tweak "follow me" mode, better error checking update dataflashlog format for ac2 lang change mod - re hazy remove arduinocpp project
33 lines
668 B
C#
33 lines
668 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 new void Open()
|
|
{
|
|
if (base.IsOpen)
|
|
return;
|
|
|
|
base.Open();
|
|
}
|
|
|
|
public void toggleDTR()
|
|
{
|
|
base.DtrEnable = false;
|
|
base.RtsEnable = false;
|
|
|
|
System.Threading.Thread.Sleep(50);
|
|
|
|
base.DtrEnable = true;
|
|
base.RtsEnable = true;
|
|
|
|
System.Threading.Thread.Sleep(50);
|
|
}
|
|
}
|
|
}
|