Correctly decode timestamps on the RADStar2 and RADGalaxy

This commit is contained in:
Paul Hollinsky
2018-12-21 20:34:02 -05:00
parent d37d5bb23e
commit b6c67eb74f
3 changed files with 14 additions and 0 deletions
@@ -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
}
};
}
@@ -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;
@@ -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<FTDI>();