aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Android_Studio/Tango.Stubs/src/main/AndroidManifest.xml
blob: 9e51ae77e820c9cd761cbe326334c3fa27fca13c (plain)
1
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.twine.tango.stubs" />
lor: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
using System;
using System.Text;
using System.Linq;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Tango.PMR.Stubs;
using Tango.Stubs;

public void OnExecute(StubManager stubManager)
{
	// FALSE - to the body
	//TRUE out
	// Request ----
// UInt32 : ValveId
// UInt32 : Inkflow
// Boolean : ValveOn
// Request ----
// UInt32 : ADCDevice

// Response ----
// UInt32 : ADCDevice
// Int32 : SamplingInBits
// Int32 : VoltageSamplingMv
// String : Status
// UInt32 : StatusWord
//var response = stubManager.Run<StubIntADCReadResponse>("StubIntADCReadRequest" ,UInt32);

// Response ----
// String : Status
// UInt32 : StatusWord
		//open valve toward the mixer, run dispenser 7
		//var response3 = stubManager.Run<StubValveResponse>("StubValveRequest" ,6, 10, true);
		//var response = stubManager.Run<StubMotorRunResponse>("StubMotorRunRequest" ,3, true, 800);
		//Thread.Sleep(3000);
		//open valve toward the midtank, stop dispenser 7
		//var response3 = stubManager.Run<StubValveResponse>("StubValveRequest" ,6, 10, false);
		var response2 = stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,3,0);
		//Thread.Sleep(10);
		//var response1 = stubManager.Run<StubMotorMovResponse>("StubMotorMovRequest" ,12, false, 150);
		// Request ----
// UInt32 : Address

// Response ----
// UInt32 : Address
// UInt32 : Value
// String : Status
// UInt32 : StatusWord
    /*{

		var response = stubManager.Run<StubMotorRunResponse>("StubMotorRunRequest" ,14, false, 20);
		Thread.Sleep(600);
		var response1 = stubManager.Run<StubMotorRunResponse>("StubMotorRunRequest" ,14, true, 20);
		Thread.Sleep(600);
	}
	
//var response1 = stubManager.Run<StubMotorStatusResponse>("StubMotorStatusRequest" ,14, true);
//Thread.Sleep(1000);
//		var response = stubManager.Run<StubMotorRunResponse>("StubMotorRunRequest" ,24, false, 20);
//		Thread.Sleep(700);

var response2 = stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,15, 0);
var response4 = stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,14, 0);*/
// Request ----
// UInt32 : Address
// UInt32 : Value

// Response ---- 
// String : Status
// UInt32 : StatusWord
//var response = stubManager.Run<StubFpgaWriteRegResponse>("StubFpgaWriteRegRequest" ,0x600008e2, 0);
// Request ----
// UInt32 : Address

// Response ----
// UInt32 : Address
// UInt32 : Value
// String : Status
// UInt32 : StatusWord
//var response1 = stubManager.Run<StubFpgaReadRegResponse>("StubFpgaReadRegRequest" ,0x600008e2);
}