blob: 946cfc546c0106292f575a9bc9039340114cca44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Drawing;
using Google.Protobuf;
using Tango.BL.Entities;
using Tango.BL.Enumerations;
using Tango.PMR.Stubs;
using Tango.PMR.Diagnostics;
using Tango.FSE.Common.Connection;
using Tango.FSE.Common.Diagnostics;
using Tango.FSE.Procedures;
public class Program
{
public void OnExecute(IProcedureContext context)
{
ProgressRequest progressRequest = new ProgressRequest();
progressRequest.Amount = 0xB1;
//progressRequest.Delay = 1;
var response = context.Send<ProgressResponse>(progressRequest);
progressRequest.Amount = 0xB2;
progressRequest.Delay = 0;
response = context.Send<ProgressResponse>(progressRequest);
context.AddResult(ResultType.Passed, "Loading Arm Calibrated", "OK");
}
}
|