Skip to content

Instantly share code, notes, and snippets.

@clausjoergensen
Created October 18, 2010 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clausjoergensen/631565 to your computer and use it in GitHub Desktop.
Save clausjoergensen/631565 to your computer and use it in GitHub Desktop.
/// <summary>
/// Watch the values for each joint on the robot.
/// </summary>
/// <remarks>
/// The interval between each callback is defined in USBC.ini in miliseconds.
/// </remarks>
/// <param name="watchJoint"></param>
/// <returns>true if the method has been succesfully executed; otherwise, false.</returns>
[DllImport(NativeMethods.DllName, EntryPoint = "?WatchJoint@@YAHP6AXPAX@Z@Z",
CallingConvention = CallingConvention.Cdecl)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static extern bool WatchJoint(WatchJointCallback watchJoint);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment