kopia lustrzana https://github.com/Hamlib/Hamlib
Fix rot_dummy.c -- now behaves with gpredict tracking
https://github.com/Hamlib/Hamlib/issues/531pull/532/head
rodzic
ed25ac943d
commit
3a25f54f74
|
@ -260,8 +260,8 @@ static int dummy_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
|
||||||
gettimeofday(&priv->tv, NULL);
|
gettimeofday(&priv->tv, NULL);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
priv->az = az;
|
priv->az = priv->target_az = az;
|
||||||
priv->el = el;
|
priv->el = priv->target_az = el;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -898,7 +898,10 @@ static int dummy_rot_get_status(ROT *rot, rot_status_t *status)
|
||||||
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
||||||
rot->state.priv;
|
rot->state.priv;
|
||||||
|
|
||||||
//dummy_rot_simulate_rotation(rot);
|
if (simulating)
|
||||||
|
{
|
||||||
|
dummy_rot_simulate_rotation(rot);
|
||||||
|
}
|
||||||
|
|
||||||
*status = priv->status;
|
*status = priv->status;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue