linuxdvb: rotor - add Max Rotor Movement field to the frontend config #2
This commit is contained in:
parent
dc56784fdd
commit
24b1818e43
3 changed files with 12 additions and 1 deletions
|
@ -140,6 +140,7 @@ struct linuxdvb_satconf
|
||||||
* LNB settings
|
* LNB settings
|
||||||
*/
|
*/
|
||||||
int ls_lnb_poweroff;
|
int ls_lnb_poweroff;
|
||||||
|
uint32_t ls_max_rotor_move;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Position
|
* Position
|
||||||
|
|
|
@ -138,7 +138,7 @@ linuxdvb_rotor_grace
|
||||||
int newpos, curpos, delta;
|
int newpos, curpos, delta;
|
||||||
|
|
||||||
if (!ls->ls_orbital_dir || lr->lr_rate == 0)
|
if (!ls->ls_orbital_dir || lr->lr_rate == 0)
|
||||||
return 120;
|
return ls->ls_max_rotor_move;
|
||||||
|
|
||||||
if (idnode_is_instance(&lr->ld_id, &linuxdvb_rotor_gotox_class))
|
if (idnode_is_instance(&lr->ld_id, &linuxdvb_rotor_gotox_class))
|
||||||
newpos = lr->lr_position; /* GotoX */
|
newpos = lr->lr_position; /* GotoX */
|
||||||
|
|
|
@ -231,6 +231,14 @@ const idclass_t linuxdvb_satconf_class =
|
||||||
.opts = PO_ADVANCED,
|
.opts = PO_ADVANCED,
|
||||||
.def.i = 1
|
.def.i = 1
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.type = PT_U32,
|
||||||
|
.id = "max_rotor_move",
|
||||||
|
.name = "Max Rotor Movement (seconds)",
|
||||||
|
.off = offsetof(linuxdvb_satconf_t, ls_max_rotor_move),
|
||||||
|
.opts = PO_ADVANCED,
|
||||||
|
.def.u32 = 120
|
||||||
|
},
|
||||||
{}
|
{}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -745,6 +753,8 @@ linuxdvb_satconf_create
|
||||||
ls->ls_type = lst->type;
|
ls->ls_type = lst->type;
|
||||||
TAILQ_INIT(&ls->ls_elements);
|
TAILQ_INIT(&ls->ls_elements);
|
||||||
|
|
||||||
|
ls->ls_max_rotor_move = 120;
|
||||||
|
|
||||||
/* Create node */
|
/* Create node */
|
||||||
if (idnode_insert(&ls->ls_id, uuid, lst->idc, 0)) {
|
if (idnode_insert(&ls->ls_id, uuid, lst->idc, 0)) {
|
||||||
free(ls);
|
free(ls);
|
||||||
|
|
Loading…
Add table
Reference in a new issue