kopia lustrzana https://github.com/Guenael/rtlsdr-wsprd
WIP chore: wsprd lib update part3
rodzic
474c95df29
commit
92d3e34213
|
@ -401,7 +401,7 @@ void subtract_signal2(float *id,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int32_t wspr_decode(float *idat,
|
int wspr_decode(float *idat,
|
||||||
float *qdat,
|
float *qdat,
|
||||||
int samples,
|
int samples,
|
||||||
struct decoder_options options,
|
struct decoder_options options,
|
||||||
|
@ -440,6 +440,7 @@ int32_t wspr_decode(float *idat,
|
||||||
uint32_t metric, cycles, maxnp;
|
uint32_t metric, cycles, maxnp;
|
||||||
|
|
||||||
/* Candidates */
|
/* Candidates */
|
||||||
|
struct cand candidates[200];
|
||||||
float freq0[200], freq1 = 0.0;
|
float freq0[200], freq1 = 0.0;
|
||||||
float drift0[200], drift1 = 0.0;
|
float drift0[200], drift1 = 0.0;
|
||||||
float sync0[200], sync1 = 0.0;
|
float sync0[200], sync1 = 0.0;
|
||||||
|
|
|
@ -35,45 +35,70 @@
|
||||||
|
|
||||||
/* Option & config of decoder (Shared with the wsprd code) */
|
/* Option & config of decoder (Shared with the wsprd code) */
|
||||||
struct decoder_options {
|
struct decoder_options {
|
||||||
uint32_t freq; // Dial frequency
|
int freq; // Dial frequency
|
||||||
char rcall[13]; // Callsign of the RX station
|
char rcall[13]; // Callsign of the RX station
|
||||||
char rloc[7]; // Locator of the RX station
|
char rloc[7]; // Locator of the RX station
|
||||||
uint32_t quickmode; // Decoder option & tweak
|
int quickmode; // Decoder option & tweak
|
||||||
uint32_t usehashtable; // ''
|
int usehashtable; // ''
|
||||||
uint32_t npasses; // ''
|
int npasses; // ''
|
||||||
uint32_t subtraction; // ''
|
int subtraction; // ''
|
||||||
};
|
};
|
||||||
|
|
||||||
struct cand {
|
struct cand {
|
||||||
float freq;
|
float freq;
|
||||||
float snr;
|
float snr;
|
||||||
int shift;
|
int shift;
|
||||||
float drift;
|
float drift;
|
||||||
float sync;
|
float sync;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct decoder_results {
|
struct decoder_results {
|
||||||
double freq;
|
double freq;
|
||||||
float sync;
|
float sync;
|
||||||
float snr;
|
float snr;
|
||||||
float dt;
|
float dt;
|
||||||
float drift;
|
float drift;
|
||||||
int32_t jitter;
|
int jitter;
|
||||||
char message[23];
|
char message[23];
|
||||||
char call[13];
|
char call[13];
|
||||||
char loc[7];
|
char loc[7];
|
||||||
char pwr[3];
|
char pwr[3];
|
||||||
uint32_t cycles;
|
int cycles;
|
||||||
};
|
};
|
||||||
|
|
||||||
void sync_and_demodulate(float *id, float *qd, long np,
|
void sync_and_demodulate(float *id,
|
||||||
unsigned char *symbols, float *f1, int ifmin, int ifmax, float fstep,
|
float *qd,
|
||||||
int *shift1, int lagmin, int lagmax, int lagstep,
|
long np,
|
||||||
float *drift1, int symfac, float *sync, int mode);
|
unsigned char *symbols,
|
||||||
void subtract_signal(float *id, float *qd, long np,
|
float *f1,
|
||||||
float f0, int shift0, float drift0, unsigned char *channel_symbols);
|
int ifmin,
|
||||||
void subtract_signal2(float *id, float *qd, long np,
|
int ifmax,
|
||||||
float f0, int shift0, float drift0, unsigned char *channel_symbols);
|
float fstep,
|
||||||
int32_t wspr_decode(float *idat, float *qdat, int samples,
|
int *shift1,
|
||||||
struct decoder_options options, struct decoder_results *decodes,
|
int lagmin,
|
||||||
int32_t *n_results);
|
int lagmax,
|
||||||
|
int lagstep,
|
||||||
|
float *drift1,
|
||||||
|
int symfac,
|
||||||
|
float *sync,
|
||||||
|
int mode);
|
||||||
|
void subtract_signal(float *id,
|
||||||
|
float *qd,
|
||||||
|
long np,
|
||||||
|
float f0,
|
||||||
|
int shift0,
|
||||||
|
float drift0,
|
||||||
|
unsigned char *channel_symbols);
|
||||||
|
void subtract_signal2(float *id,
|
||||||
|
float *qd,
|
||||||
|
long np,
|
||||||
|
float f0,
|
||||||
|
int shift0,
|
||||||
|
float drift0,
|
||||||
|
unsigned char *channel_symbols);
|
||||||
|
int wspr_decode(float *idat,
|
||||||
|
float *qdat,
|
||||||
|
int samples,
|
||||||
|
struct decoder_options options,
|
||||||
|
struct decoder_results *decodes,
|
||||||
|
int *n_results);
|
||||||
|
|
Ładowanie…
Reference in New Issue