Skip to content

Commit 5114ede

Browse files
Merge pull request ROBOTIS-GIT#333 from ROBOTIS-GIT/develop
Merge (develop -> master)
2 parents 31e1421 + abf3adf commit 5114ede

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

c#/protocol_combined/win32/protocol_combined/dynamixel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace dynamixel_sdk
2323
{
2424
class dynamixel
2525
{
26-
const string dll_path = "../../../../../../../../c/build/win32/output/dxl_x86_c.dll";
26+
const string dll_path = "../../../../../../../c/build/win32/output/dxl_x86_c.dll";
2727

2828
#region PortHandler
2929
[DllImport(dll_path)]

c#/protocol_combined/win64/protocol_combined/dynamixel.cs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace dynamixel_sdk
2323
{
2424
class dynamixel
2525
{
26-
const string dll_path = "../../../../../../../../c/build/win64/output/dxl_x64_c.dll";
26+
const string dll_path = "../../../../../../../c/build/win64/output/dxl_x64_c.dll";
2727

2828
#region PortHandler
2929
[DllImport(dll_path)]
@@ -46,18 +46,13 @@ class dynamixel
4646
[DllImport(dll_path)]
4747
public static extern int getBaudRate (int port_num);
4848

49-
#ifdef __linux__
5049
[DllImport(dll_path)]
51-
public static extern int getBytesAvailable (int port_num);
52-
#endif
53-
54-
[DllImport(dll_path)]
55-
public static extern int readPort (int port_num, uint8_t *packet, int length);
50+
public static extern int readPort (int port_num, byte[] packet, int length);
5651
[DllImport(dll_path)]
57-
public static extern int writePort (int port_num, uint8_t *packet, int length);
52+
public static extern int writePort (int port_num, byte[] packet, int length);
5853

5954
[DllImport(dll_path)]
60-
public static extern void setPacketTimeout (int port_num, uint16_t packet_length);
55+
public static extern void setPacketTimeout (int port_num, UInt16 packet_length);
6156
[DllImport(dll_path)]
6257
public static extern void setPacketTimeoutMSec(int port_num, double msec);
6358
[DllImport(dll_path)]
@@ -68,12 +63,11 @@ class dynamixel
6863
[DllImport(dll_path)]
6964
public static extern void packetHandler ();
7065

71-
7266
[DllImport(dll_path)]
7367
public static extern IntPtr getTxRxResult (int protocol_version, int result);
7468
[DllImport(dll_path)]
7569
public static extern IntPtr getRxPacketError (int protocol_version, byte error);
76-
70+
7771
[DllImport(dll_path)]
7872
public static extern int getLastTxRxResult (int port_num, int protocol_version);
7973
[DllImport(dll_path)]

0 commit comments

Comments
 (0)