mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Correctly decode timestamps on the RADStar2 and RADGalaxy
This commit is contained in:
@@ -58,6 +58,10 @@ protected:
|
|||||||
packetizer->disableChecksum = true;
|
packetizer->disableChecksum = true;
|
||||||
packetizer->align16bit = false;
|
packetizer->align16bit = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void setupDecoder(Decoder* decoder) override {
|
||||||
|
decoder->timestampMultiplier = 10; // Timestamps are in 10ns increments instead of the usual 25ns
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,11 @@ protected:
|
|||||||
packetizer->align16bit = false;
|
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) {
|
RADStar2(neodevice_t neodevice) : Device(neodevice) {
|
||||||
getWritableNeoDevice().type = DEVICE_TYPE;
|
getWritableNeoDevice().type = DEVICE_TYPE;
|
||||||
productId = PRODUCT_ID;
|
productId = PRODUCT_ID;
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ public:
|
|||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void setupDecoder(Decoder* decoder) override {
|
||||||
|
decoder->timestampMultiplier = 10; // Timestamps are in 10ns increments instead of the usual 25ns
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RADSupermoon(neodevice_t neodevice) : Device(neodevice) {
|
RADSupermoon(neodevice_t neodevice) : Device(neodevice) {
|
||||||
initialize<FTDI>();
|
initialize<FTDI>();
|
||||||
|
|||||||
Reference in New Issue
Block a user