Contains a wrapper for the C++ functions in the dll file(USBC.dll). Good idea to check USBC-documentation.pdf. Notes: Uses IntPtr arg for different types of C++ pointers. Same function names as C++ but has "Wrapped" at the end. Try to have handlers in delegates which in entire use of wrapper, so the memory for the handler doesn´t get removed by GC. \todo Add behind factory class.
Inheritance: IWrapper
示例#1
0
 public bool Time(Wrapper.enumAxisSettings _bGroup, long _mTime)
 {
     return _wrapper.timeWrapped(_bGroup, _mTime);
 }
示例#2
0
 public bool Speed(Wrapper.enumAxisSettings _bGroup, long _mSpeed)
 {
     return _wrapper.speedWrapped(_bGroup, _mSpeed);
 }
示例#3
0
 /// <summary>
 /// Time for future movements in miliseconds
 /// </summary>
 /// <param name="_bGroup">Part of the robot </param> 
 /// /// <param name="_mTime">Value for time</param>
 /// <returns>Always true.</returns>
 public bool Time(Wrapper.enumAxisSettings _bGroup, long _mTime)
 {
     iuiOutput.writeLine("New Time for future movements: " + _mTime + "Miliseconds");
     return true;
 }
示例#4
0
 // -Singleton related
 /// <summary>
 /// Gets the wrapper.
 /// </summary>
 /// <returns>The wrapper.</returns>
 public static Wrapper getInstance()
 {
     if(wrapOnlyInstance == null)
     {
         wrapOnlyInstance = new Wrapper();
     }
     return (wrapOnlyInstance);
 }
示例#5
0
 /// <summary>
 /// Speed for future movements in percent
 /// </summary>
 /// <param name="_bGroup">Part of the robot </param> 
 /// /// <param name="_mSpeed">Value for speed</param>
 /// <returns>Always true.</returns>
 public bool Speed(Wrapper.enumAxisSettings _bGroup, long _mSpeed)
 {
     iuiOutput.writeLine("New Speed for future movements: " + _mSpeed + "%");
     return true;
 }