diff options
Diffstat (limited to 'Software/Stubs Collection/Procedures/Winder Calibration.txt')
| -rw-r--r-- | Software/Stubs Collection/Procedures/Winder Calibration.txt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Software/Stubs Collection/Procedures/Winder Calibration.txt b/Software/Stubs Collection/Procedures/Winder Calibration.txt index 722284f91..b73f25e1e 100644 --- a/Software/Stubs Collection/Procedures/Winder Calibration.txt +++ b/Software/Stubs Collection/Procedures/Winder Calibration.txt @@ -29,12 +29,18 @@ public class Program bool Located = false; string box_msg = "Keep your hands away from the winder"; MessageBox.Show(box_msg); + MotorHomingRequest motorHomingRequest = new MotorHomingRequest(); motorHomingRequest.MotorType = Tango.PMR.Hardware.HardwareMotorType.MotoScrew; motorHomingRequest.Speed = 800; motorHomingRequest.Direction = Tango.PMR.Diagnostics.MotorDirection.Forward; + + ProgressRequest progressRequest = new ProgressRequest(); + progressRequest.Amount = 0xB21; + progressRequest.Delay = 500; + context.Send<ProgressResponse>(progressRequest); - offset = context.GetInput<int>("Initial Offset"); + offset = 200;//context.GetInput<int>("Initial Offset"); StubMotorMovRequest stubMotorMovRequest = new StubMotorMovRequest(); stubMotorMovRequest.MotorID = SCREW_MOTOR; @@ -57,11 +63,15 @@ public class Program } } - ProgressRequest progressRequest = new ProgressRequest(); progressRequest.Amount = 0xB20; progressRequest.Delay = Calibration_Offset; context.Send<ProgressResponse>(progressRequest); box_msg = "Writing new winder offset " + Calibration_Offset+ " to the main card EEPROM"; + + progressRequest.Amount = 0xB21; + progressRequest.Delay = 1000000; + context.Send<ProgressResponse>(progressRequest); + MessageBox.Show(box_msg); } |
