C-Netz: Added list of base station names and IDs

Automatic polarity detection is now done by using the polarity of last
transmitted message. We cannot use two base station IDs anymore, to
detect the polarity. Now we deal only with the defined base station ID.
This commit is contained in:
Andreas Eversberg
2019-11-24 18:26:38 +01:00
parent 008bca784b
commit 360729d270
11 changed files with 1148 additions and 144 deletions

View File

@@ -85,13 +85,13 @@ typedef struct cnetz {
/* all cnetz states */
enum cnetz_state state; /* main state of sender */
/* cell nr selection */
int cell_auto; /* if set, cell_nr is selected automatically */
int cell_nr; /* current cell number to use (sysinfo) */
/* polarity detection */
int auto_polarity; /* if set, polarity of transmitter is selected */
int negative_polarity; /* current polarity 0: positive 1: negative */
/* scheduler */
int sched_ts; /* current time slot */
int sched_last_ts[2]; /* last timeslot we transmitted, so we can match MS timeslot */
int sched_last_ts; /* last timeslot we transmitted, to sync time of the receiver */
int sched_r_m; /* Rufblock (0) / Meldeblock (1) */
int sched_switch_mode; /* counts slots until mode is switched */
enum dsp_mode sched_dsp_mode; /* what mode shall be switched to */