Cleaned up

This commit is contained in:
Christopher Remde
2020-07-08 14:15:49 +02:00
parent 1544abd276
commit 2b15ed0f5b
4 changed files with 4 additions and 18 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ namespace KinectServer
}
/// <summary>
/// Send temporal Sync Data to all client
/// Send temporal Sync Data to all clients
/// </summary>
public void SendTemporalSyncData()
{
-12
View File
@@ -220,18 +220,6 @@ namespace KinectServer
currentTempSyncState = eTempSyncConfig.STANDALONE;
}
//MARKED FOR DELETION
//if(currentTempSyncState == eTempSyncConfig.SUBORDINATE && confirmSubStarted == 1)
//{
//}
//else if(currentTempSyncState == eTempSyncConfig.SUBORDINATE && confirmSubStarted == 0)
//{
// bSubStarted = false;
// eSubInitialized?.Invoke();
//}
UpdateSocketState();
}
+1 -4
View File
@@ -56,10 +56,7 @@ bool AzureKinectCapture::Initialize(bool asMaster, bool asSubordinate, int syncO
{
config.wired_sync_mode = K4A_WIRED_SYNC_MODE_SUBORDINATE;
//Sets the offset on subordinate devices. Should be a multiple of 160, each subordinate having a different multiplier in ascending order.
//This is very important, as it avoids firing the Kinects Lasers at the same time.
config.subordinate_delay_off_master_usec = 0;
//This is very important, as it avoids firing the Kinects lasers at the same time.
config.subordinate_delay_off_master_usec = 160 * syncOffsetMultiplier;
}
+2 -1
View File
@@ -94,7 +94,8 @@ void FrameFileWriterReader::writeFrame(std::vector<Point3s> points, std::vector<
FILE *f = m_pFileHandle;
int nPoints = static_cast<int>(points.size());
//fprintf(f, "n_points= %d\nframe_timestamp= %d\n", nPoints, getRecordingTimeMilliseconds());
//The Timestamp is generated by the Kinect instead of the system. If temporal Sync is enabled, Master and Subordinate have a synced timestamp
fprintf(f, "n_points= %d\nframe_timestamp= %d\n", nPoints, timestamp);
if (nPoints > 0)
{