Commit 3d9fc616 authored by Omar Gabella's avatar Omar Gabella

Fixed delays set to 0 at WR servo initialization

parent 46da1cd4
......@@ -207,12 +207,18 @@ int wr_servo_init(struct pp_instance *ppi)
wrp->ops->adjust_phase(s->cur_setpoint);
s->missed_iters = 0;
s->state = WR_UNINITIALIZED;
#ifdef BROADCAST_BASE
/* Fixed delays set to 0 for CLB Base */
s->delta_tx_m = 0;
s->delta_rx_m = 0;
s->delta_tx_s = 0;
s->delta_rx_s = 0;
#else
s->delta_tx_m = delta_to_ps(wrp->otherNodeDeltaTx);
s->delta_rx_m = delta_to_ps(wrp->otherNodeDeltaRx);
s->delta_tx_s = delta_to_ps(wrp->deltaTx);
s->delta_rx_s = delta_to_ps(wrp->deltaRx);
#endif // BROADCAST_BASE
strcpy(s->servo_state_name, "Uninitialized");
s->flags |= WR_FLAG_VALID;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment