ardupilot/Tools/ArdupilotMegaPlanner/Protocol.cs
Michael Oborne 79abfc2a96 APM Planner 1.1.45
add tcp and udp port remeber issue 533
add udp listern wait issue 534
fix wp receive on mono part issue 530
allow logging of unknown packets mav 0.9
do_speed_change fix issue 531
remember last video res issue 521
fix issue 528 - ch 6 and ch 7 options
2012-03-01 21:27:03 +08:00

66 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.IO;
namespace ArdupilotMega
{
partial interface Protocol
{
byte[][] packets { get; set; }
PointLatLngAlt[] wps { get; set; }
ICommsSerial BaseStream { get; set; }
int bps { get; set; }
bool debugmavlink { get; set; }
DateTime lastvalidpacket {get;set;}
bool logreadmode { get; set; }
DateTime lastlogread { get; set; }
BinaryReader logplaybackfile { get; set; }
BinaryWriter logfile { get; set; }
byte sysid { get; set; }
byte compid { get; set; }
Hashtable param { get; set; }
void UpdateCurrentSettings(ref CurrentState cs);
void Close();
void Open();
void Open(bool getparams);
void sendPacket(object indata);
bool Write(string line);
bool setParam(string paramname, float value);
Hashtable getParamList();
void modifyParamForDisplay(bool fromapm, string paramname, ref float value);
void stopall(bool forget);
void setWPACK();
bool setWPCurrent(ushort index);
bool doAction(byte actionid); // MAV_ACTION
void requestDatastream(byte id, byte hzrate);
byte getWPCount();
Locationwp getWP(ushort index);
object DebugPacket(byte[] datin);
object DebugPacket(byte[] datin, ref string text);
void setWPTotal(ushort wp_total);
void setWP(Locationwp loc, ushort index, byte frame, byte current); //MAV_FRAME
void setMountConfigure(byte mountmode, bool stabroll, bool stabpitch, bool stabyaw); //MAV_MOUNT_MODE
void setMountControl(double pa, double pb, double pc, bool islatlng);
void setMode(string modein);
byte[] readPacket();
bool translateMode(string modein, ref object navmode, ref object mode);
}
}