m3: numpackets to 2 or 20 depending on ten giga enable (#123)

This commit is contained in:
Dhanya Thattil authored and GitHub committed 2020-07-30 15:02:33 +02:00
1 parent 6f5635a402
commit 7492f7dbfa
4 files changed
+22 -12

No files matched your search

+1
View File
@@ -462,6 +462,7 @@ class Mythen3Data : public GeneralData {
*/
void SetDynamicRange(int dr, bool tgEnable) {
imageSize = nPixelsX * nPixelsY * ((double)dr / 8.00);
packetsPerFrame = tgEnable ? 2 : 20;
dataSize = imageSize / packetsPerFrame;
packetSize = headerSizeinPacket + dataSize;
LOG(logINFO) << "PacketSize: " << packetSize;