private void TCPProcessor_WholeFrameReceivedEvent() { if (MarkerList.listOfMarkers.Count == 2) { //FrontFoot(MarkerList.listOfMarkers[0], MarkerList.listOfMarkers[1]); left.PreviousMarker = new Marker(left.CurrentMarker); right.PreviousMarker = new Marker(right.CurrentMarker); AssignFootMarkers(MarkerList.listOfMarkers); //currentMarker = MarkerList.listOfMarkers[currentID]; //elaborate marker assignment to account for swapping //if (currentID != previousID) System.Diagnostics.Debug.WriteLine("Possible marker swap: " + currentMarker.TimeStamp); left.FootPositionList.Add(PositionData.ConvertMarkerPosition(left.CurrentMarker)); right.FootPositionList.Add(PositionData.ConvertMarkerPosition(right.CurrentMarker)); left.MarkerTrack(); right.MarkerTrack(); } }