mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-07 16:38:30 -04:00
ce4437578a
add ap param support fix dtr fix firmware screen on mono misc mono fix's mods from mandrolic - partial. Add spanish - issue 515 new sitl images for attitude hil - issue 513
27 lines
533 B
C#
27 lines
533 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()
|
|
{
|
|
base.DtrEnable = false;
|
|
base.RtsEnable = false;
|
|
|
|
System.Threading.Thread.Sleep(50);
|
|
|
|
base.DtrEnable = true;
|
|
base.RtsEnable = true;
|
|
|
|
System.Threading.Thread.Sleep(50);
|
|
}
|
|
}
|
|
}
|