@@ -98,7 +98,8 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
98
98
* @endcode
99
99
* @param id DYNAMIXEL Actuator's ID or BROADCAST ID (0xFE). (default : 0xFE)
100
100
* @return It returns true(1) on success, false(0) on failure.
101
- */
101
+ */
102
+ using DYNAMIXEL::Master::ping;
102
103
bool ping (uint8_t id = DXL_BROADCAST_ID);
103
104
104
105
/* *
@@ -253,7 +254,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
253
254
* @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)
254
255
* Only support UNIT_RAW, UNIT_DEGREE.
255
256
* @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 ().
257
258
*/
258
259
float getPresentPosition (uint8_t id, uint8_t unit = UNIT_RAW);
259
260
@@ -285,7 +286,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
285
286
* @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)
286
287
* Only support UNIT_RAW, UNIT_PERCENT, UNIT_RPM.
287
288
* @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 ().
289
290
*/
290
291
float getPresentVelocity (uint8_t id, uint8_t unit = UNIT_RAW);
291
292
@@ -317,7 +318,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
317
318
* @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)
318
319
* Only support UNIT_RAW, UNIT_PERCENT.
319
320
* @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 ().
321
322
*/
322
323
float getPresentPWM (uint8_t id, uint8_t unit = UNIT_RAW);
323
324
@@ -349,7 +350,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
349
350
* @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)
350
351
* Only support UNIT_RAW, UNIT_PERCENT, UNIT_MILLI_AMPERE.
351
352
* @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 ().
353
354
*/
354
355
float getPresentCurrent (uint8_t id, uint8_t unit = UNIT_RAW);
355
356
@@ -367,7 +368,7 @@ class Dynamixel2Arduino : public DYNAMIXEL::Master
367
368
* @param id DYNAMIXEL Actuator's ID.
368
369
* @param timeout A timeout waiting for a response to a data transfer.
369
370
* @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 ().
371
372
*/
372
373
int32_t readControlTableItem (uint8_t item_idx,
373
374
uint8_t id, uint32_t timeout = 100 );
0 commit comments