Exemplo n.º 1
0
 /// <inheritdoc/>
 public override double GetRate()
 {
     if (RobotBase.IsSimulation)
     {
         //Use our simulator hack
         return(BitConverter.ToSingle(BitConverter.GetBytes(m_spi.GetAccumulatorCount()), 0));
     }
     return(m_spi.GetAccumulatorLastValue() * DegreePerSecondPerLSB);
 }