getAcceleration

Get the current encoder acceleration in a distance. Note that the motor attached to this generator must be an instance of Motor, or an exception will be thrown.