Skip to content

Commit

Permalink
Update maxon_epos3.cpp (#15)
Browse files Browse the repository at this point in the history
corrected the variable name
  • Loading branch information
ros2torial authored Nov 2, 2022
1 parent ff7d644 commit 7b583a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethercat_plugins/src/maxon_plugins/maxon_epos3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class Maxon_EPOS3 : public ethercat_interface::EcSlave
mode_of_operation_display_ == MODE_CYCLIC_SYNC_POSITION ||
mode_of_operation_display_ == MODE_PROFILED_POSITION ||
mode_of_operation_display_ == MODE_INTERPOLATED_POSITION ))
target_torque_ = command_interface_ptr_->at(cii_target_position);
EC_WRITE_S32(domain_address, target_torque_);
target_position_ = command_interface_ptr_->at(cii_target_position);
EC_WRITE_S32(domain_address, target_position_);
break;
case 2:
if(isTargetVelocityRequired && (
Expand Down

0 comments on commit 7b583a1

Please sign in to comment.