コード例 #1
0
        /**
         * Sets the number of velocity samples used in the rolling average velocity
         * measurement.
         *
         * @param windowSize
         *            Number of samples in the rolling average of velocity
         *            measurement. Valid values are 1,2,4,8,16,32. If another
         *            value is specified, it will truncate to nearest support value.
         * @param timeoutMs
         *            Timeout value in ms. If nonzero, function will wait for
         *            config success and report an error if it times out.
         *            If zero, no blocking or checking is performed.
         * @return Error Code generated by function. 0 indicates no error.
         */
        public ErrorCode ConfigVelocityMeasurementWindow(int windowSize, int timeoutMs)
        {
            ErrorCode retval = _ll.ConfigVelocityMeasurementWindow(windowSize, timeoutMs);

            return(retval);
        }