springSettleTime function

Duration springSettleTime(
  1. SpringConfig spring
)

How long spring takes to settle from rest, by the criterion the driver actually uses. The inverse of springForDuration, and what pins it.

This is the settle time of a morph started at rest. An interruption carries velocity across (see Spring.start), so a morph re-planned mid-flight is not held to it.

Implementation

Duration springSettleTime(SpringConfig spring) =>
    Duration(microseconds: (_settleSeconds(spring.k, spring.c) * 1e6).round());