@@ -231,10 +231,10 @@ class Drive {
231
231
std::vector<std::string> generateTorqueControlConfigSDO ();
232
232
233
233
/* *
234
- * \brief Send a list (vector) of properly formatted SDO Messages
235
- *
236
- * \return int -number_of_unsuccesfull messages (0 means OK for all). vcan will always return 0 (no reply check).
237
- */
234
+ * \brief Send a list (vector) of properly formatted SDO Messages
235
+ *
236
+ * \return int -number_of_unsuccesfull messages (0 means OK for all). vcan will always return 0 (no reply check).
237
+ */
238
238
int sendSDOMessages (std::vector<std::string> messages);
239
239
240
240
@@ -295,8 +295,8 @@ class Drive {
295
295
{TARGET_POS, 4 },
296
296
{TARGET_VEL, 4 },
297
297
{TARGET_TOR, 2 },
298
- {DIGITAL_IN, 2 },
299
- {DIGITAL_OUT, 2 }};
298
+ {DIGITAL_IN, 4 },
299
+ {DIGITAL_OUT, 4 }};
300
300
301
301
/* *
302
302
* \brief Map between the Commonly-used OD entries and their addresses and sub-index - used to generate PDO Configurations
@@ -305,16 +305,16 @@ class Drive {
305
305
*/
306
306
std::map<OD_Entry_t, std::array<int , 2 >> OD_Addresses = {
307
307
{STATUS_WORD, {0x6041 , 0x00 }},
308
- {ERROR_WORD, {0x2601 , 0x00 }},
308
+ {ERROR_WORD, {0x603F , 0x00 }},
309
309
{ACTUAL_POS, {0x6064 , 0x00 }},
310
310
{ACTUAL_VEL, {0x606C , 0x00 }},
311
311
{ACTUAL_TOR, {0x6077 , 0x00 }},
312
312
{CONTROL_WORD, {0x6040 , 0x00 }},
313
313
{TARGET_POS, {0x607A , 0x00 }},
314
314
{TARGET_VEL, {0x60FF , 0x00 }},
315
315
{TARGET_TOR, {0x6071 , 0x00 }},
316
- {DIGITAL_IN, {0x2501 , 0x00 }},
317
- {DIGITAL_OUT, {0x2601 , 0x00 }}};
316
+ {DIGITAL_IN, {0x60FD , 0x00 }},
317
+ {DIGITAL_OUT, {0x60FE , 0x01 }}};
318
318
319
319
std::map<OD_Entry_t, void *> OD_MappedObjectAddresses = {
320
320
{STATUS_WORD, (void *)&statusWord},
@@ -343,8 +343,8 @@ class Drive {
343
343
INTEGER32 targetPos=0 ;
344
344
INTEGER32 targetVel=0 ;
345
345
INTEGER16 targetTor=0 ;
346
- UNSIGNED16 digitalIn=0 ;
347
- UNSIGNED16 digitalOut=0 ;
346
+ UNSIGNED32 digitalIn=0 ;
347
+ UNSIGNED32 digitalOut=0 ;
348
348
/* *
349
349
* \brief Current error state of the drive
350
350
*
0 commit comments