MLAT (width and frequency) and RSSI (width) scaling working.

This commit is contained in:
Ian Gulliver
2016-02-15 22:01:32 +00:00
parent bae4398a61
commit cbae234327
3 changed files with 46 additions and 6 deletions

View File

@@ -34,8 +34,6 @@ void buf_consume(struct buf *, size_t);
//////// packet
#define MLAT_MHZ 120
#define RSSI_MAX UINT32_MAX
#define DATA_LEN_MAX 14
struct packet {
enum {
@@ -49,6 +47,21 @@ struct packet {
};
//////// mlat
struct mlat_state {
uint64_t timestamp_last;
uint64_t timestamp_generation;
};
uint64_t mlat_timestamp_scale_in(uint64_t, uint64_t, uint16_t, struct mlat_state *);
//////// rssi
uint32_t rssi_scale_in(uint32_t, uint32_t);
//////// hex
void hex_init();