aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/Hardware/Dispenser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/Hardware/Dispenser.cs')
-rw-r--r--Software/Visual_Studio/Tango.PMR/Hardware/Dispenser.cs569
1 files changed, 0 insertions, 569 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/Hardware/Dispenser.cs b/Software/Visual_Studio/Tango.PMR/Hardware/Dispenser.cs
deleted file mode 100644
index 803944892..000000000
--- a/Software/Visual_Studio/Tango.PMR/Hardware/Dispenser.cs
+++ /dev/null
@@ -1,569 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: Dispenser.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-namespace Tango.PMR.Hardware {
-
- /// <summary>Holder for reflection information generated from Dispenser.proto</summary>
- public static partial class DispenserReflection {
-
- #region Descriptor
- /// <summary>File descriptor for Dispenser.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static DispenserReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cg9EaXNwZW5zZXIucHJvdG8SElRhbmdvLlBNUi5IYXJkd2FyZSLFAgoPRGlz",
- "cGVuc2VyQ29uZmlnEhkKEURpc3BlbnNlckNhcGFjaXR5GAEgASgFEhcKD01p",
- "ZFRhbmtDYXBhY2l0eRgCIAEoBRIWCg5GbG93UGVyUHVsc2VObBgDIAEoARIP",
- "CgdNaW5GcmVxGAQgASgNEg8KB01heEZyZXEYBSABKA0SFAoMTWlubWljcm9T",
- "dGVwGAYgASgNEhQKDE1heG1pY3JvU3RlcBgHIAEoDRIWCg5Db3JyZWN0aW9u",
- "R2FpbhgIIAEoARIYChBSYXRpbzJEcnllclNwZWVkGAkgASgBEgoKAktwGAog",
- "ASgBEgoKAktpGAsgASgBEgoKAktkGAwgASgBEhMKC0NoYW5nZVNsb3BlGA0g",
- "ASgBEhYKDkhpZ2hMZW5ndGh1U2VjGA4gASgBEhUKDUNvbnRyb2xUaW1pbmcY",
- "DyABKAVCHgocY29tLnR3aW5lLnRhbmdvLnBtci5oYXJkd2FyZWIGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.DispenserConfig), global::Tango.PMR.Hardware.DispenserConfig.Parser, new[]{ "DispenserCapacity", "MidTankCapacity", "FlowPerPulseNl", "MinFreq", "MaxFreq", "MinmicroStep", "MaxmicroStep", "CorrectionGain", "Ratio2DryerSpeed", "Kp", "Ki", "Kd", "ChangeSlope", "HighLengthuSec", "ControlTiming" }, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class DispenserConfig : pb::IMessage<DispenserConfig> {
- private static readonly pb::MessageParser<DispenserConfig> _parser = new pb::MessageParser<DispenserConfig>(() => new DispenserConfig());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<DispenserConfig> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tango.PMR.Hardware.DispenserReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DispenserConfig() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DispenserConfig(DispenserConfig other) : this() {
- dispenserCapacity_ = other.dispenserCapacity_;
- midTankCapacity_ = other.midTankCapacity_;
- flowPerPulseNl_ = other.flowPerPulseNl_;
- minFreq_ = other.minFreq_;
- maxFreq_ = other.maxFreq_;
- minmicroStep_ = other.minmicroStep_;
- maxmicroStep_ = other.maxmicroStep_;
- correctionGain_ = other.correctionGain_;
- ratio2DryerSpeed_ = other.ratio2DryerSpeed_;
- kp_ = other.kp_;
- ki_ = other.ki_;
- kd_ = other.kd_;
- changeSlope_ = other.changeSlope_;
- highLengthuSec_ = other.highLengthuSec_;
- controlTiming_ = other.controlTiming_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DispenserConfig Clone() {
- return new DispenserConfig(this);
- }
-
- /// <summary>Field number for the "DispenserCapacity" field.</summary>
- public const int DispenserCapacityFieldNumber = 1;
- private int dispenserCapacity_;
- /// <summary>
- ///milliliters
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DispenserCapacity {
- get { return dispenserCapacity_; }
- set {
- dispenserCapacity_ = value;
- }
- }
-
- /// <summary>Field number for the "MidTankCapacity" field.</summary>
- public const int MidTankCapacityFieldNumber = 2;
- private int midTankCapacity_;
- /// <summary>
- ///milliliters
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int MidTankCapacity {
- get { return midTankCapacity_; }
- set {
- midTankCapacity_ = value;
- }
- }
-
- /// <summary>Field number for the "FlowPerPulseNl" field.</summary>
- public const int FlowPerPulseNlFieldNumber = 3;
- private double flowPerPulseNl_;
- /// <summary>
- ///nanoliter per step , uStep = 1
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double FlowPerPulseNl {
- get { return flowPerPulseNl_; }
- set {
- flowPerPulseNl_ = value;
- }
- }
-
- /// <summary>Field number for the "MinFreq" field.</summary>
- public const int MinFreqFieldNumber = 4;
- private uint minFreq_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint MinFreq {
- get { return minFreq_; }
- set {
- minFreq_ = value;
- }
- }
-
- /// <summary>Field number for the "MaxFreq" field.</summary>
- public const int MaxFreqFieldNumber = 5;
- private uint maxFreq_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint MaxFreq {
- get { return maxFreq_; }
- set {
- maxFreq_ = value;
- }
- }
-
- /// <summary>Field number for the "MinmicroStep" field.</summary>
- public const int MinmicroStepFieldNumber = 6;
- private uint minmicroStep_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint MinmicroStep {
- get { return minmicroStep_; }
- set {
- minmicroStep_ = value;
- }
- }
-
- /// <summary>Field number for the "MaxmicroStep" field.</summary>
- public const int MaxmicroStepFieldNumber = 7;
- private uint maxmicroStep_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public uint MaxmicroStep {
- get { return maxmicroStep_; }
- set {
- maxmicroStep_ = value;
- }
- }
-
- /// <summary>Field number for the "CorrectionGain" field.</summary>
- public const int CorrectionGainFieldNumber = 8;
- private double correctionGain_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double CorrectionGain {
- get { return correctionGain_; }
- set {
- correctionGain_ = value;
- }
- }
-
- /// <summary>Field number for the "Ratio2DryerSpeed" field.</summary>
- public const int Ratio2DryerSpeedFieldNumber = 9;
- private double ratio2DryerSpeed_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Ratio2DryerSpeed {
- get { return ratio2DryerSpeed_; }
- set {
- ratio2DryerSpeed_ = value;
- }
- }
-
- /// <summary>Field number for the "Kp" field.</summary>
- public const int KpFieldNumber = 10;
- private double kp_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Kp {
- get { return kp_; }
- set {
- kp_ = value;
- }
- }
-
- /// <summary>Field number for the "Ki" field.</summary>
- public const int KiFieldNumber = 11;
- private double ki_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Ki {
- get { return ki_; }
- set {
- ki_ = value;
- }
- }
-
- /// <summary>Field number for the "Kd" field.</summary>
- public const int KdFieldNumber = 12;
- private double kd_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Kd {
- get { return kd_; }
- set {
- kd_ = value;
- }
- }
-
- /// <summary>Field number for the "ChangeSlope" field.</summary>
- public const int ChangeSlopeFieldNumber = 13;
- private double changeSlope_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double ChangeSlope {
- get { return changeSlope_; }
- set {
- changeSlope_ = value;
- }
- }
-
- /// <summary>Field number for the "HighLengthuSec" field.</summary>
- public const int HighLengthuSecFieldNumber = 14;
- private double highLengthuSec_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double HighLengthuSec {
- get { return highLengthuSec_; }
- set {
- highLengthuSec_ = value;
- }
- }
-
- /// <summary>Field number for the "ControlTiming" field.</summary>
- public const int ControlTimingFieldNumber = 15;
- private int controlTiming_;
- /// <summary>
- ///10-100-1000 milliseconds
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int ControlTiming {
- get { return controlTiming_; }
- set {
- controlTiming_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as DispenserConfig);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(DispenserConfig other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (DispenserCapacity != other.DispenserCapacity) return false;
- if (MidTankCapacity != other.MidTankCapacity) return false;
- if (FlowPerPulseNl != other.FlowPerPulseNl) return false;
- if (MinFreq != other.MinFreq) return false;
- if (MaxFreq != other.MaxFreq) return false;
- if (MinmicroStep != other.MinmicroStep) return false;
- if (MaxmicroStep != other.MaxmicroStep) return false;
- if (CorrectionGain != other.CorrectionGain) return false;
- if (Ratio2DryerSpeed != other.Ratio2DryerSpeed) return false;
- if (Kp != other.Kp) return false;
- if (Ki != other.Ki) return false;
- if (Kd != other.Kd) return false;
- if (ChangeSlope != other.ChangeSlope) return false;
- if (HighLengthuSec != other.HighLengthuSec) return false;
- if (ControlTiming != other.ControlTiming) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (DispenserCapacity != 0) hash ^= DispenserCapacity.GetHashCode();
- if (MidTankCapacity != 0) hash ^= MidTankCapacity.GetHashCode();
- if (FlowPerPulseNl != 0D) hash ^= FlowPerPulseNl.GetHashCode();
- if (MinFreq != 0) hash ^= MinFreq.GetHashCode();
- if (MaxFreq != 0) hash ^= MaxFreq.GetHashCode();
- if (MinmicroStep != 0) hash ^= MinmicroStep.GetHashCode();
- if (MaxmicroStep != 0) hash ^= MaxmicroStep.GetHashCode();
- if (CorrectionGain != 0D) hash ^= CorrectionGain.GetHashCode();
- if (Ratio2DryerSpeed != 0D) hash ^= Ratio2DryerSpeed.GetHashCode();
- if (Kp != 0D) hash ^= Kp.GetHashCode();
- if (Ki != 0D) hash ^= Ki.GetHashCode();
- if (Kd != 0D) hash ^= Kd.GetHashCode();
- if (ChangeSlope != 0D) hash ^= ChangeSlope.GetHashCode();
- if (HighLengthuSec != 0D) hash ^= HighLengthuSec.GetHashCode();
- if (ControlTiming != 0) hash ^= ControlTiming.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (DispenserCapacity != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(DispenserCapacity);
- }
- if (MidTankCapacity != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(MidTankCapacity);
- }
- if (FlowPerPulseNl != 0D) {
- output.WriteRawTag(25);
- output.WriteDouble(FlowPerPulseNl);
- }
- if (MinFreq != 0) {
- output.WriteRawTag(32);
- output.WriteUInt32(MinFreq);
- }
- if (MaxFreq != 0) {
- output.WriteRawTag(40);
- output.WriteUInt32(MaxFreq);
- }
- if (MinmicroStep != 0) {
- output.WriteRawTag(48);
- output.WriteUInt32(MinmicroStep);
- }
- if (MaxmicroStep != 0) {
- output.WriteRawTag(56);
- output.WriteUInt32(MaxmicroStep);
- }
- if (CorrectionGain != 0D) {
- output.WriteRawTag(65);
- output.WriteDouble(CorrectionGain);
- }
- if (Ratio2DryerSpeed != 0D) {
- output.WriteRawTag(73);
- output.WriteDouble(Ratio2DryerSpeed);
- }
- if (Kp != 0D) {
- output.WriteRawTag(81);
- output.WriteDouble(Kp);
- }
- if (Ki != 0D) {
- output.WriteRawTag(89);
- output.WriteDouble(Ki);
- }
- if (Kd != 0D) {
- output.WriteRawTag(97);
- output.WriteDouble(Kd);
- }
- if (ChangeSlope != 0D) {
- output.WriteRawTag(105);
- output.WriteDouble(ChangeSlope);
- }
- if (HighLengthuSec != 0D) {
- output.WriteRawTag(113);
- output.WriteDouble(HighLengthuSec);
- }
- if (ControlTiming != 0) {
- output.WriteRawTag(120);
- output.WriteInt32(ControlTiming);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (DispenserCapacity != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DispenserCapacity);
- }
- if (MidTankCapacity != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(MidTankCapacity);
- }
- if (FlowPerPulseNl != 0D) {
- size += 1 + 8;
- }
- if (MinFreq != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinFreq);
- }
- if (MaxFreq != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxFreq);
- }
- if (MinmicroStep != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinmicroStep);
- }
- if (MaxmicroStep != 0) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxmicroStep);
- }
- if (CorrectionGain != 0D) {
- size += 1 + 8;
- }
- if (Ratio2DryerSpeed != 0D) {
- size += 1 + 8;
- }
- if (Kp != 0D) {
- size += 1 + 8;
- }
- if (Ki != 0D) {
- size += 1 + 8;
- }
- if (Kd != 0D) {
- size += 1 + 8;
- }
- if (ChangeSlope != 0D) {
- size += 1 + 8;
- }
- if (HighLengthuSec != 0D) {
- size += 1 + 8;
- }
- if (ControlTiming != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(ControlTiming);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(DispenserConfig other) {
- if (other == null) {
- return;
- }
- if (other.DispenserCapacity != 0) {
- DispenserCapacity = other.DispenserCapacity;
- }
- if (other.MidTankCapacity != 0) {
- MidTankCapacity = other.MidTankCapacity;
- }
- if (other.FlowPerPulseNl != 0D) {
- FlowPerPulseNl = other.FlowPerPulseNl;
- }
- if (other.MinFreq != 0) {
- MinFreq = other.MinFreq;
- }
- if (other.MaxFreq != 0) {
- MaxFreq = other.MaxFreq;
- }
- if (other.MinmicroStep != 0) {
- MinmicroStep = other.MinmicroStep;
- }
- if (other.MaxmicroStep != 0) {
- MaxmicroStep = other.MaxmicroStep;
- }
- if (other.CorrectionGain != 0D) {
- CorrectionGain = other.CorrectionGain;
- }
- if (other.Ratio2DryerSpeed != 0D) {
- Ratio2DryerSpeed = other.Ratio2DryerSpeed;
- }
- if (other.Kp != 0D) {
- Kp = other.Kp;
- }
- if (other.Ki != 0D) {
- Ki = other.Ki;
- }
- if (other.Kd != 0D) {
- Kd = other.Kd;
- }
- if (other.ChangeSlope != 0D) {
- ChangeSlope = other.ChangeSlope;
- }
- if (other.HighLengthuSec != 0D) {
- HighLengthuSec = other.HighLengthuSec;
- }
- if (other.ControlTiming != 0) {
- ControlTiming = other.ControlTiming;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- DispenserCapacity = input.ReadInt32();
- break;
- }
- case 16: {
- MidTankCapacity = input.ReadInt32();
- break;
- }
- case 25: {
- FlowPerPulseNl = input.ReadDouble();
- break;
- }
- case 32: {
- MinFreq = input.ReadUInt32();
- break;
- }
- case 40: {
- MaxFreq = input.ReadUInt32();
- break;
- }
- case 48: {
- MinmicroStep = input.ReadUInt32();
- break;
- }
- case 56: {
- MaxmicroStep = input.ReadUInt32();
- break;
- }
- case 65: {
- CorrectionGain = input.ReadDouble();
- break;
- }
- case 73: {
- Ratio2DryerSpeed = input.ReadDouble();
- break;
- }
- case 81: {
- Kp = input.ReadDouble();
- break;
- }
- case 89: {
- Ki = input.ReadDouble();
- break;
- }
- case 97: {
- Kd = input.ReadDouble();
- break;
- }
- case 105: {
- ChangeSlope = input.ReadDouble();
- break;
- }
- case 113: {
- HighLengthuSec = input.ReadDouble();
- break;
- }
- case 120: {
- ControlTiming = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code