public frmUI() { InitializeComponent(); this.Text = "StromoLight Diagnostics"; this.Size = new Size(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width, this.Height); SendStartupNotification(); markerHeightCal = (Calibration)RemotingServices.Connect(typeof(Calibration), "tcp://144.32.137.126:8003/Calibration"); //m_calibration = (Calibration)RemotingServices.Connect(typeof(Calibration),"tcp://144.32.137.126:8003/Calibration"); }
public TightropeBackupData(string fileID, Calibration calibration) { backupData = new BackUpData(); backupData.CalibrationItem = calibration; this.fileID = fileID; if (calibration.LeftFoot_Marker != null) { TCPProcessor.WholeFrameReceivedEvent += new TCPProcessor.WholeFrameReceivedHandler(TCPProcessor_WholeFrameReceivedEvent); } else { Stromohab_MCE_Connection.TCPProcessor.TrackableListReceivedEvent += new TCPProcessor.TrackableListReceivedHandler(TCPProcessor_TrackableListReceivedEvent); } }
public TestSubject(string name, string subjectID, string gender, uint age, Calibration cal) { this.calibration = cal; this.age = age; this.name = name; this.gender = gender; this.subjectID = subjectID; if (calibration.LeftFoot_Marker != null) { left = new Foot("left", calibration.LeftFoot_Marker); right = new Foot("right", calibration.RightFoot_Marker); } else { left = new Foot("left", calibration.LeftFoot_Trackable); right = new Foot("right", calibration.RightFoot_Trackable); } }
public TightropeData(StreamWriter file, Calibration markerHeightCal) { outfile = file; outfile.Write("Right, Left\n"); left = new Foot("left", markerHeightCal.LeftFoot); right = new Foot("right", markerHeightCal.RightFoot); sound = new SoundPlayer(@"D:/Test/Conga2.wav"); sound.Load(); Foot.FootDownDetected += new Foot.FootDownEventHandler(Foot_FootDownDetected); //debug output Console.WriteLine("Start Left:" + " x" + ((int)markerHeightCal.LeftFoot.xCoordinate).ToString() + " y" + ((int)markerHeightCal.LeftFoot.yCoordinate).ToString() + " z" + ((int)markerHeightCal.LeftFoot.zCoordinate).ToString()); Console.WriteLine("Start Right:" + " x" + ((int)markerHeightCal.RightFoot.xCoordinate).ToString() + " y" + ((int)markerHeightCal.RightFoot.yCoordinate).ToString() + " z" + ((int)markerHeightCal.RightFoot.zCoordinate).ToString() + "\n"); }
//private delegate void DisplayDataCallback(StrideDiagnostics diagnosticData); public frmUI() { InitializeComponent(); this.Text = "StromoLight Diagnostics"; this.Size = new Size(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width, this.Height); //asymmetryAnalyser = new AsymmetryAnalysis();4 //AsymmetryAnalysis.DataAvailable += //new AsymmetryAnalysis.AsymmetryEventHandler(Asymmetry_DataAvailable);5 //feetSound = new Sonifier();6 //feetSound.Enabled = false;7 //asymmetryAnalyser.Enabled = false;8 SendStartupNotification(); markerHeightCal = (Calibration)RemotingServices.Connect(typeof(Calibration), "tcp://144.32.137.126:8003/Calibration"); //m_calibration = (Calibration)RemotingServices.Connect(typeof(Calibration),"tcp://144.32.137.126:8003/Calibration"); }