@@ -231,10 +231,10 @@ class Drive {
231231 std::vector<std::string> generateTorqueControlConfigSDO ();
232232
233233 /* *
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+ */
238238 int sendSDOMessages (std::vector<std::string> messages);
239239
240240
@@ -295,8 +295,8 @@ class Drive {
295295 {TARGET_POS, 4 },
296296 {TARGET_VEL, 4 },
297297 {TARGET_TOR, 2 },
298- {DIGITAL_IN, 2 },
299- {DIGITAL_OUT, 2 }};
298+ {DIGITAL_IN, 4 },
299+ {DIGITAL_OUT, 4 }};
300300
301301 /* *
302302 * \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 {
305305 */
306306 std::map<OD_Entry_t, std::array<int , 2 >> OD_Addresses = {
307307 {STATUS_WORD, {0x6041 , 0x00 }},
308- {ERROR_WORD, {0x2601 , 0x00 }},
308+ {ERROR_WORD, {0x603F , 0x00 }},
309309 {ACTUAL_POS, {0x6064 , 0x00 }},
310310 {ACTUAL_VEL, {0x606C , 0x00 }},
311311 {ACTUAL_TOR, {0x6077 , 0x00 }},
312312 {CONTROL_WORD, {0x6040 , 0x00 }},
313313 {TARGET_POS, {0x607A , 0x00 }},
314314 {TARGET_VEL, {0x60FF , 0x00 }},
315315 {TARGET_TOR, {0x6071 , 0x00 }},
316- {DIGITAL_IN, {0x2501 , 0x00 }},
317- {DIGITAL_OUT, {0x2601 , 0x00 }}};
316+ {DIGITAL_IN, {0x60FD , 0x00 }},
317+ {DIGITAL_OUT, {0x60FE , 0x01 }}};
318318
319319 std::map<OD_Entry_t, void *> OD_MappedObjectAddresses = {
320320 {STATUS_WORD, (void *)&statusWord},
@@ -343,8 +343,8 @@ class Drive {
343343 INTEGER32 targetPos=0 ;
344344 INTEGER32 targetVel=0 ;
345345 INTEGER16 targetTor=0 ;
346- UNSIGNED16 digitalIn=0 ;
347- UNSIGNED16 digitalOut=0 ;
346+ UNSIGNED32 digitalIn=0 ;
347+ UNSIGNED32 digitalOut=0 ;
348348 /* *
349349 * \brief Current error state of the drive
350350 *
0 commit comments