aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/Hardware
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-05 15:26:01 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-05 15:26:01 +0300
commitb1b9ec165cc318caed1fc9b5919a03029b6cb29e (patch)
treef1acb7c17b4ac0f21a6572c837105a9fd581b0ae /Software/Visual_Studio/Tango.PMR/Hardware
parentac0a8a7715360263973fda940f9138cf7d5141d7 (diff)
downloadTango-b1b9ec165cc318caed1fc9b5919a03029b6cb29e.tar.gz
Tango-b1b9ec165cc318caed1fc9b5919a03029b6cb29e.zip
Completed Remote Debugger VSIX !!!
Added 2 dancer parameters. Refactored Tech Board to reset configuration when connected machine changes.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/Hardware')
-rw-r--r--Software/Visual_Studio/Tango.PMR/Hardware/HardwareDancer.cs66
1 files changed, 62 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/Hardware/HardwareDancer.cs b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareDancer.cs
index bd150cb85..f55ab72a2 100644
--- a/Software/Visual_Studio/Tango.PMR/Hardware/HardwareDancer.cs
+++ b/Software/Visual_Studio/Tango.PMR/Hardware/HardwareDancer.cs
@@ -23,17 +23,19 @@ namespace Tango.PMR.Hardware {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChRIYXJkd2FyZURhbmNlci5wcm90bxISVGFuZ28uUE1SLkhhcmR3YXJlGhhI",
- "YXJkd2FyZURhbmNlclR5cGUucHJvdG8i7gEKDkhhcmR3YXJlRGFuY2VyEkIK",
+ "YXJkd2FyZURhbmNlclR5cGUucHJvdG8isAIKDkhhcmR3YXJlRGFuY2VyEkIK",
"EkhhcmR3YXJlRGFuY2VyVHlwZRgBIAEoDjImLlRhbmdvLlBNUi5IYXJkd2Fy",
"ZS5IYXJkd2FyZURhbmNlclR5cGUSDwoHR3JhZHVhbBgCIAEoCBIJCgFLGAMg",
"ASgBEgkKAVgYBCABKAESGAoQUHVsc2VQZXJNbVNwcmluZxgFIAEoBRIZChFN",
"YXhpbWFsTW92ZW1lbnRNbRgGIAEoBRIRCglaZXJvUG9pbnQYByABKAUSFgoO",
- "UmVzb2x1dGlvbkJpdHMYCCABKAUSEQoJQXJtTGVuZ3RoGAkgASgFQh4KHGNv",
- "bS50d2luZS50YW5nby5wbXIuaGFyZHdhcmViBnByb3RvMw=="));
+ "UmVzb2x1dGlvbkJpdHMYCCABKAUSEQoJQXJtTGVuZ3RoGAkgASgFEh4KFkFz",
+ "c2VtYmx5RGlyZWN0aW9uUmlnaHQYCiABKAgSIAoYQWNjZWxlcmF0ZU9uVGVu",
+ "c2lvblJhaXNlGAsgASgIQh4KHGNvbS50d2luZS50YW5nby5wbXIuaGFyZHdh",
+ "cmViBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Hardware.HardwareDancerTypeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.HardwareDancer), global::Tango.PMR.Hardware.HardwareDancer.Parser, new[]{ "HardwareDancerType", "Gradual", "K", "X", "PulsePerMmSpring", "MaximalMovementMm", "ZeroPoint", "ResolutionBits", "ArmLength" }, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.HardwareDancer), global::Tango.PMR.Hardware.HardwareDancer.Parser, new[]{ "HardwareDancerType", "Gradual", "K", "X", "PulsePerMmSpring", "MaximalMovementMm", "ZeroPoint", "ResolutionBits", "ArmLength", "AssemblyDirectionRight", "AccelerateOnTensionRaise" }, null, null, null)
}));
}
#endregion
@@ -73,6 +75,8 @@ namespace Tango.PMR.Hardware {
zeroPoint_ = other.zeroPoint_;
resolutionBits_ = other.resolutionBits_;
armLength_ = other.armLength_;
+ assemblyDirectionRight_ = other.assemblyDirectionRight_;
+ accelerateOnTensionRaise_ = other.accelerateOnTensionRaise_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -179,6 +183,28 @@ namespace Tango.PMR.Hardware {
}
}
+ /// <summary>Field number for the "AssemblyDirectionRight" field.</summary>
+ public const int AssemblyDirectionRightFieldNumber = 10;
+ private bool assemblyDirectionRight_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool AssemblyDirectionRight {
+ get { return assemblyDirectionRight_; }
+ set {
+ assemblyDirectionRight_ = value;
+ }
+ }
+
+ /// <summary>Field number for the "AccelerateOnTensionRaise" field.</summary>
+ public const int AccelerateOnTensionRaiseFieldNumber = 11;
+ private bool accelerateOnTensionRaise_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public bool AccelerateOnTensionRaise {
+ get { return accelerateOnTensionRaise_; }
+ set {
+ accelerateOnTensionRaise_ = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as HardwareDancer);
@@ -201,6 +227,8 @@ namespace Tango.PMR.Hardware {
if (ZeroPoint != other.ZeroPoint) return false;
if (ResolutionBits != other.ResolutionBits) return false;
if (ArmLength != other.ArmLength) return false;
+ if (AssemblyDirectionRight != other.AssemblyDirectionRight) return false;
+ if (AccelerateOnTensionRaise != other.AccelerateOnTensionRaise) return false;
return true;
}
@@ -216,6 +244,8 @@ namespace Tango.PMR.Hardware {
if (ZeroPoint != 0) hash ^= ZeroPoint.GetHashCode();
if (ResolutionBits != 0) hash ^= ResolutionBits.GetHashCode();
if (ArmLength != 0) hash ^= ArmLength.GetHashCode();
+ if (AssemblyDirectionRight != false) hash ^= AssemblyDirectionRight.GetHashCode();
+ if (AccelerateOnTensionRaise != false) hash ^= AccelerateOnTensionRaise.GetHashCode();
return hash;
}
@@ -262,6 +292,14 @@ namespace Tango.PMR.Hardware {
output.WriteRawTag(72);
output.WriteInt32(ArmLength);
}
+ if (AssemblyDirectionRight != false) {
+ output.WriteRawTag(80);
+ output.WriteBool(AssemblyDirectionRight);
+ }
+ if (AccelerateOnTensionRaise != false) {
+ output.WriteRawTag(88);
+ output.WriteBool(AccelerateOnTensionRaise);
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -294,6 +332,12 @@ namespace Tango.PMR.Hardware {
if (ArmLength != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ArmLength);
}
+ if (AssemblyDirectionRight != false) {
+ size += 1 + 1;
+ }
+ if (AccelerateOnTensionRaise != false) {
+ size += 1 + 1;
+ }
return size;
}
@@ -329,6 +373,12 @@ namespace Tango.PMR.Hardware {
if (other.ArmLength != 0) {
ArmLength = other.ArmLength;
}
+ if (other.AssemblyDirectionRight != false) {
+ AssemblyDirectionRight = other.AssemblyDirectionRight;
+ }
+ if (other.AccelerateOnTensionRaise != false) {
+ AccelerateOnTensionRaise = other.AccelerateOnTensionRaise;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -375,6 +425,14 @@ namespace Tango.PMR.Hardware {
ArmLength = input.ReadInt32();
break;
}
+ case 80: {
+ AssemblyDirectionRight = input.ReadBool();
+ break;
+ }
+ case 88: {
+ AccelerateOnTensionRaise = input.ReadBool();
+ break;
+ }
}
}
}