Skip to content

Commit

Permalink
uncommented
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-git committed Nov 22, 2024
1 parent 20e7580 commit 940ed9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libYARP_dev/src/yarp/dev/ControlBoardHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,7 @@ double ControlBoardHelper::get_pidfeedback_conversion_factor_user2raw(const yarp
switch (pidtype)
{
case yarp::dev::PidControlTypeEnum::VOCAB_PIDTYPE_POSITION: feedback_conversion_factor = mPriv->angleToEncoders[j]; break;
case yarp::dev::PidControlTypeEnum::VOCAB_PIDTYPE_DIRECT: feedback_conversion_factor = mPriv->angleToEncoders[j]; break;
case yarp::dev::PidControlTypeEnum::VOCAB_PIDTYPE_VELOCITY: feedback_conversion_factor = mPriv->angleToEncoders[j]; break;
case yarp::dev::PidControlTypeEnum::VOCAB_PIDTYPE_TORQUE: feedback_conversion_factor = mPriv->newtonsToSensors[j]; break;
case yarp::dev::PidControlTypeEnum::VOCAB_PIDTYPE_CURRENT: feedback_conversion_factor = mPriv->ampereToSensors[j]; break;
Expand Down
1 change: 1 addition & 0 deletions src/libYARP_dev/src/yarp/dev/PidEnums.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ enum YARP_dev_API PidControlTypeEnum
VOCAB_PIDTYPE_POSITION = yarp::os::createVocab32('p', 'o', 's'),
VOCAB_PIDTYPE_VELOCITY = yarp::os::createVocab32('v', 'e', 'l'),
VOCAB_PIDTYPE_TORQUE = yarp::os::createVocab32('t', 'r', 'q'),
VOCAB_PIDTYPE_DIRECT = yarp::os::createVocab32('d', 'i', 'r'),
VOCAB_PIDTYPE_CURRENT = yarp::os::createVocab32('c', 'u', 'r')
};

Expand Down

0 comments on commit 940ed9a

Please sign in to comment.