reference: rework makestep

Rework makestep to cancel accumulated offset and step with the new
offset instead of accumulating new offset first, canceling all
accumulated offset and making the step.

This avoids two large frequency changes to initiate and cancel a slew
before making the step.
This commit is contained in:
Miroslav Lichvar
2014-06-05 14:46:22 +02:00
parent 64ba5a5b65
commit 20d2363fb7
4 changed files with 28 additions and 19 deletions

View File

@@ -1589,7 +1589,7 @@ handle_manual_delete(CMD_Request *rx_message, CMD_Reply *tx_message)
static void
handle_make_step(CMD_Request *rx_message, CMD_Reply *tx_message)
{
LCL_MakeStep(0.0);
LCL_MakeStep();
tx_message->status = htons(STT_SUCCESS);
}