Fix Yaeus LVL_NR to default 1-15 range and set FT450 to 1-11 ranges

https://github.com/Hamlib/Hamlib/issues/1305
pull/1330/head
Mike Black W9MDB 2023-05-31 07:55:50 -05:00
rodzic fd86001ead
commit fe209d7cce
3 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -66,6 +66,7 @@ const struct rig_caps ft450_caps =
{
#include "level_gran_yaesu.h"
// cppcheck-suppress *
[LVL_NR] = { .min = { .i = 1 }, .max = { .i = 11 }, .step = { .i = 1 } },
[LVL_RAWSTR] = { .min = { .i = 0 }, .max = { .i = 255 } },
[LVL_CWPITCH] = { .min = { .i = 400 }, .max = { .i = 800 }, .step = { .i = 100 } },
[LVL_KEYSPD] = { .min = { .i = 4 }, .max = { .i = 60 }, .step = { .i = 1 } },

Wyświetl plik

@ -163,7 +163,7 @@ const struct rig_caps ft991_caps =
.has_set_parm = RIG_PARM_NONE,
.level_gran = {
#include "level_gran_yaesu.h"
[LVL_NR] = { .min = { .f = 0 }, .max = { .f = 1 }, .step = { .f = 1.0f / 15.0f } },
[LVL_NR] = { .min = { .i = 1 }, .max = { .i = 15 }, .step = { .i = 1 } },
},
.ctcss_list = common_ctcss_list,
.dcs_list = common_dcs_list,

Wyświetl plik

@ -23,8 +23,9 @@
/* level with misc units */
[LVL_SWR] = { .min = { .f = 0 }, .max = { .f = 5.0 }, .step = { .f = 1.0f/255.0f } },
[LVL_BAND_SELECT] = { .min = { .i = 0 }, .max = { .i = 16 }, .step = { .i = 1 } },
// most recent rigs seem to have 15 as the maximum -- other values can be set in the backend
[LVL_NR] = { .min = { .i = 1 }, .max = { .i = 15 }, .step = { .i = 1 } },
/* levels with 0-1 values -- increment based on rig's range */
[LVL_NR] = { .min = { .f = 0 }, .max = { .f = 1 }, .step = { .f = 1.0f/10.0f } },
[LVL_AF] = { .min = { .f = 0 }, .max = { .f = 1 }, .step = { .f = 1.0f/255.0f } },
[LVL_RF] = { .min = { .f = 0 }, .max = { .f = 1 }, .step = { .f = 1.0f/255.0f } },
[LVL_RFPOWER] = { .min = { .f = .05 }, .max = { .f = 1 }, .step = { .f = 1.0f/100.0f } },