diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/Hardware/InternalWinder.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.PMR/Hardware/InternalWinder.cs | 245 |
1 files changed, 0 insertions, 245 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/Hardware/InternalWinder.cs b/Software/Visual_Studio/Tango.PMR/Hardware/InternalWinder.cs deleted file mode 100644 index 6050ed4e4..000000000 --- a/Software/Visual_Studio/Tango.PMR/Hardware/InternalWinder.cs +++ /dev/null @@ -1,245 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: InternalWinder.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 InternalWinder.proto</summary> - public static partial class InternalWinderReflection { - - #region Descriptor - /// <summary>File descriptor for InternalWinder.proto</summary> - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static InternalWinderReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChRJbnRlcm5hbFdpbmRlci5wcm90bxISVGFuZ28uUE1SLkhhcmR3YXJlIogB", - "ChRJbnRlcm5hbFdpbmRlckNvbmZpZxIZChFTdGFydE9mZnNldFB1bHNlcxgB", - "IAEoDRIYChBTcG9vbEJhY2tpbmdSYXRlGAIgASgNEhsKE1NlZ21lbnRPZmZz", - "ZXRQdWxzZXMYAyABKA0SHgoWTWlsbGltZXRlcnNQZXJSb3RhdGlvbhgEIAEo", - "DUIeChxjb20udHdpbmUudGFuZ28ucG1yLmhhcmR3YXJlYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.InternalWinderConfig), global::Tango.PMR.Hardware.InternalWinderConfig.Parser, new[]{ "StartOffsetPulses", "SpoolBackingRate", "SegmentOffsetPulses", "MillimetersPerRotation" }, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class InternalWinderConfig : pb::IMessage<InternalWinderConfig> { - private static readonly pb::MessageParser<InternalWinderConfig> _parser = new pb::MessageParser<InternalWinderConfig>(() => new InternalWinderConfig()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser<InternalWinderConfig> Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Tango.PMR.Hardware.InternalWinderReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public InternalWinderConfig() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public InternalWinderConfig(InternalWinderConfig other) : this() { - startOffsetPulses_ = other.startOffsetPulses_; - spoolBackingRate_ = other.spoolBackingRate_; - segmentOffsetPulses_ = other.segmentOffsetPulses_; - millimetersPerRotation_ = other.millimetersPerRotation_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public InternalWinderConfig Clone() { - return new InternalWinderConfig(this); - } - - /// <summary>Field number for the "StartOffsetPulses" field.</summary> - public const int StartOffsetPulsesFieldNumber = 1; - private uint startOffsetPulses_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint StartOffsetPulses { - get { return startOffsetPulses_; } - set { - startOffsetPulses_ = value; - } - } - - /// <summary>Field number for the "SpoolBackingRate" field.</summary> - public const int SpoolBackingRateFieldNumber = 2; - private uint spoolBackingRate_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint SpoolBackingRate { - get { return spoolBackingRate_; } - set { - spoolBackingRate_ = value; - } - } - - /// <summary>Field number for the "SegmentOffsetPulses" field.</summary> - public const int SegmentOffsetPulsesFieldNumber = 3; - private uint segmentOffsetPulses_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint SegmentOffsetPulses { - get { return segmentOffsetPulses_; } - set { - segmentOffsetPulses_ = value; - } - } - - /// <summary>Field number for the "MillimetersPerRotation" field.</summary> - public const int MillimetersPerRotationFieldNumber = 4; - private uint millimetersPerRotation_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint MillimetersPerRotation { - get { return millimetersPerRotation_; } - set { - millimetersPerRotation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as InternalWinderConfig); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(InternalWinderConfig other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StartOffsetPulses != other.StartOffsetPulses) return false; - if (SpoolBackingRate != other.SpoolBackingRate) return false; - if (SegmentOffsetPulses != other.SegmentOffsetPulses) return false; - if (MillimetersPerRotation != other.MillimetersPerRotation) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (StartOffsetPulses != 0) hash ^= StartOffsetPulses.GetHashCode(); - if (SpoolBackingRate != 0) hash ^= SpoolBackingRate.GetHashCode(); - if (SegmentOffsetPulses != 0) hash ^= SegmentOffsetPulses.GetHashCode(); - if (MillimetersPerRotation != 0) hash ^= MillimetersPerRotation.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 (StartOffsetPulses != 0) { - output.WriteRawTag(8); - output.WriteUInt32(StartOffsetPulses); - } - if (SpoolBackingRate != 0) { - output.WriteRawTag(16); - output.WriteUInt32(SpoolBackingRate); - } - if (SegmentOffsetPulses != 0) { - output.WriteRawTag(24); - output.WriteUInt32(SegmentOffsetPulses); - } - if (MillimetersPerRotation != 0) { - output.WriteRawTag(32); - output.WriteUInt32(MillimetersPerRotation); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (StartOffsetPulses != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StartOffsetPulses); - } - if (SpoolBackingRate != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SpoolBackingRate); - } - if (SegmentOffsetPulses != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SegmentOffsetPulses); - } - if (MillimetersPerRotation != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MillimetersPerRotation); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(InternalWinderConfig other) { - if (other == null) { - return; - } - if (other.StartOffsetPulses != 0) { - StartOffsetPulses = other.StartOffsetPulses; - } - if (other.SpoolBackingRate != 0) { - SpoolBackingRate = other.SpoolBackingRate; - } - if (other.SegmentOffsetPulses != 0) { - SegmentOffsetPulses = other.SegmentOffsetPulses; - } - if (other.MillimetersPerRotation != 0) { - MillimetersPerRotation = other.MillimetersPerRotation; - } - } - - [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: { - StartOffsetPulses = input.ReadUInt32(); - break; - } - case 16: { - SpoolBackingRate = input.ReadUInt32(); - break; - } - case 24: { - SegmentOffsetPulses = input.ReadUInt32(); - break; - } - case 32: { - MillimetersPerRotation = input.ReadUInt32(); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code |
