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

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

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;