SpinREst:

--------------------------------------------------------------------------
   Estimates rate from measurements of period

   Since version 1.
--------------------------------------------------------------------------
   Form:
   x = SpinREst( accel, K, x, T, pulsewidth )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   accel          (1,1)   Thruster angular acceleration per unit time
   K              (1,1)   Gain
   x              (1,1)   Rate estimate
   T              (1,1)   Measured period
   pulsewidth     (1,1)   Thruster pulsewidth (duration of the acceleration)

   -------
   Outputs
   -------
   x              (1,1)   Rate estimate

--------------------------------------------------------------------------