Fix default trace refpos set (use NGRIDY value)

This commit is contained in:
DiSlord 2020-02-23 15:58:12 +03:00
parent 1177d87498
commit c92987c52e

22
main.c
View file

@ -1505,17 +1505,17 @@ static const struct {
uint16_t refpos; uint16_t refpos;
float scale_unit; float scale_unit;
} trace_info[] = { } trace_info[] = {
{ "LOGMAG", 9, 10 }, { "LOGMAG", NGRIDY-1, 10.0 },
{ "PHASE", 5, 90 }, { "PHASE", NGRIDY/2, 90.0 },
{ "DELAY", 5, 1e-9 }, { "DELAY", NGRIDY/2, 1e-9 },
{ "SMITH", 0, 1 }, { "SMITH", 0, 1.00 },
{ "POLAR", 0, 1 }, { "POLAR", 0, 1.00 },
{ "LINEAR", 0, 0.125 }, { "LINEAR", 0, 0.125},
{ "SWR", 0, 1 }, { "SWR", 0, 1.00 },
{ "REAL", 5, 0.25 }, { "REAL", NGRIDY/2, 0.25 },
{ "IMAG", 5, 0.25 }, { "IMAG", NGRIDY/2, 0.25 },
{ "R", 0, 100 }, { "R", NGRIDY/2, 100.0 },
{ "X", 5, 100 } { "X", NGRIDY/2, 100.0 }
}; };
const char * const trc_channel_name[] = { const char * const trc_channel_name[] = {