Skip to content

Commit cab63ed

Browse files
author
Kei
committed
Fixed typo & Enable ping of master.
1 parent 5c4b86f commit cab63ed

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Dynamixel2Arduino.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
9898
* @endcode
9999
* @param id DYNAMIXEL Actuator's ID or BROADCAST ID (0xFE). (default : 0xFE)
100100
* @return It returns true(1) on success, false(0) on failure.
101-
*/
101+
*/
102+
using DYNAMIXEL::Master::ping;
102103
bool ping(uint8_t id = DXL_BROADCAST_ID);
103104

104105
/**
@@ -253,7 +254,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
253254
* @param unit The unit you want to return (the function converts the raw value to the unit you specified and returns it) (default : UNIT_RAW)
254255
* Only support UNIT_RAW, UNIT_DEGREE.
255256
* @return It returns the data read from DXL control table item.(Returns the value appropriate for @unit.)
256-
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastErrorCode().
257+
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastLibErrCode().
257258
*/
258259
float getPresentPosition(uint8_t id, uint8_t unit = UNIT_RAW);
259260

@@ -285,7 +286,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
285286
* @param unit The unit you want to return (the function converts the raw value to the unit you specified and returns it) (default : UNIT_RAW)
286287
* Only support UNIT_RAW, UNIT_PERCENT, UNIT_RPM.
287288
* @return It returns the data read from DXL control table item.(Returns the value appropriate for @unit.)
288-
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastErrorCode().
289+
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastLibErrCode().
289290
*/
290291
float getPresentVelocity(uint8_t id, uint8_t unit = UNIT_RAW);
291292

@@ -317,7 +318,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
317318
* @param unit The unit you want to return (the function converts the raw value to the unit you specified and returns it) (default : UNIT_RAW)
318319
* Only support UNIT_RAW, UNIT_PERCENT.
319320
* @return It returns the data read from DXL control table item.(Returns the value appropriate for @unit.)
320-
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastErrorCode().
321+
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastLibErrCode().
321322
*/
322323
float getPresentPWM(uint8_t id, uint8_t unit = UNIT_RAW);
323324

@@ -349,7 +350,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
349350
* @param unit The unit you want to return (the function converts the raw value to the unit you specified and returns it) (default : UNIT_RAW)
350351
* Only support UNIT_RAW, UNIT_PERCENT, UNIT_MILLI_AMPERE.
351352
* @return It returns the data read from DXL control table item.(Returns the value appropriate for @unit.)
352-
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastErrorCode().
353+
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastLibErrCode().
353354
*/
354355
float getPresentCurrent(uint8_t id, uint8_t unit = UNIT_RAW);
355356

@@ -367,7 +368,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
367368
* @param id DYNAMIXEL Actuator's ID.
368369
* @param timeout A timeout waiting for a response to a data transfer.
369370
* @return It returns the data read from DXL control table item.(Returns the value appropriate for @unit.)
370-
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastErrorCode().
371+
* If the read fails, 0 is returned. Whether or not this is an actual value can be confirmed with @getLastLibErrCode().
371372
*/
372373
int32_t readControlTableItem(uint8_t item_idx,
373374
uint8_t id, uint32_t timeout = 100);

0 commit comments

Comments
 (0)