示例#1
0
                /**
                 * Gets the period of the given status frame.
                 *
                 * @param frame
                 *            Frame to get the period of.
                 * @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 Period of the given status frame.
                 */
                public int GetStatusFramePeriod(PigeonIMU_StatusFrame frame, int timeoutMs)
                {
                    int retval;

                    _ll.GetStatusFramePeriod(frame, out retval, timeoutMs);
                    return(retval);
                }
示例#2
0
                /**
                 * Sets the period of the given status frame.
                 *
                 * @param statusFrame
                 *            Frame whose period is to be changed.
                 * @param periodMs
                 *            Period in ms for the given frame.
                 * @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 SetStatusFramePeriod(PigeonIMU_StatusFrame statusFrame, int periodMs, int timeoutMs)
                {
                    ErrorCode retval = _ll.SetStatusFramePeriod(statusFrame, periodMs, timeoutMs);

                    return(retval);
                }