Add stats serializer.

This commit is contained in:
Ian Gulliver
2016-02-17 08:30:32 +00:00
parent 0db4d15897
commit a0d94a4198
9 changed files with 73 additions and 8 deletions

View File

@@ -57,6 +57,12 @@ void buf_consume(struct buf *buf, size_t length) {
}
char *packet_type_names[] = {
"Mode-S short",
"Mode-S long",
};
uint64_t mlat_timestamp_scale_mhz_in(uint64_t timestamp, uint32_t mhz) {
return timestamp * (MLAT_MHZ / mhz);
}