mirror of
https://github.com/storytold/LiveScan3D.git
synced 2026-10-12 23:48:55 +00:00
Cleaned up
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user