Correctly decode timestamps on the RADStar2 and RADGalaxy
parent
d37d5bb23e
commit
b6c67eb74f
|
|
@ -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>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue