diff --git a/include/icsneo/device/radgalaxy/radgalaxy.h b/include/icsneo/device/radgalaxy/radgalaxy.h index b6f7719..0e02a06 100644 --- a/include/icsneo/device/radgalaxy/radgalaxy.h +++ b/include/icsneo/device/radgalaxy/radgalaxy.h @@ -58,6 +58,10 @@ protected: packetizer->disableChecksum = true; packetizer->align16bit = false; } + + virtual void setupDecoder(Decoder* decoder) override { + decoder->timestampMultiplier = 10; // Timestamps are in 10ns increments instead of the usual 25ns + } }; } diff --git a/include/icsneo/device/radstar2/radstar2.h b/include/icsneo/device/radstar2/radstar2.h index fa5e7b3..d743d1c 100644 --- a/include/icsneo/device/radstar2/radstar2.h +++ b/include/icsneo/device/radstar2/radstar2.h @@ -20,6 +20,11 @@ protected: packetizer->align16bit = false; } + virtual void setupDecoder(Decoder* decoder) override { + Device::setupDecoder(decoder); + decoder->timestampMultiplier = 10; // Timestamps are in 10ns increments instead of the usual 25ns + } + RADStar2(neodevice_t neodevice) : Device(neodevice) { getWritableNeoDevice().type = DEVICE_TYPE; productId = PRODUCT_ID; diff --git a/include/icsneo/device/radsupermoon/radsupermoon.h b/include/icsneo/device/radsupermoon/radsupermoon.h index ac16f02..e5e4174 100644 --- a/include/icsneo/device/radsupermoon/radsupermoon.h +++ b/include/icsneo/device/radsupermoon/radsupermoon.h @@ -21,6 +21,11 @@ public: return found; } +protected: + virtual void setupDecoder(Decoder* decoder) override { + decoder->timestampMultiplier = 10; // Timestamps are in 10ns increments instead of the usual 25ns + } + private: RADSupermoon(neodevice_t neodevice) : Device(neodevice) { initialize();