Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for aea3 encoder #769

Merged
merged 3 commits into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conf/iCubFindDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ checkandset_dependency(Qt5)

if(icub_firmware_shared_FOUND AND ICUB_USE_icub_firmware_shared)
# icub-firmware-shared 4.0.7 was actually a wrong version exported by icub-firmware-shared <= 1.15
if(icub_firmware_shared_VERSION VERSION_GREATER 4 OR icub_firmware_shared_VERSION VERSION_LESS 1.20.2)
message(FATAL_ERROR "An old version of icub-firmware-shared has been detected, but at least 1.20.2 is required")
if(icub_firmware_shared_VERSION VERSION_GREATER 4 OR icub_firmware_shared_VERSION VERSION_LESS 1.21.0)
message(FATAL_ERROR "An old version of icub-firmware-shared has been detected, but at least 1.21.0 is required")
endif()
endif()

Expand Down
3 changes: 3 additions & 0 deletions src/libraries/icubmod/embObjLib/serviceParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,8 @@ bool ServiceParser::parse_encoder_port(std::string const &fromstring, eObrd_etht
{
const char *t = fromstring.c_str();

yInfo() << "ServiceParser::parse_encoder_port(): ===========================> " << eomc_encoder2string(type, false);

bool ret = false;
switch(type)
{
Expand All @@ -1810,6 +1812,7 @@ bool ServiceParser::parse_encoder_port(std::string const &fromstring, eObrd_etht
} break;

case eomc_enc_aea:
case eomc_enc_aea3:
case eomc_enc_amo:
case eomc_enc_qenc:
case eomc_enc_spichainof2:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,9 @@ void embObjMotionControl::updateDeadZoneWithDefaultValues(void)
case eomc_enc_aea:
_deadzone[i] = eomc_defaultValue::DeadZone::jointWithAEA;// 0.0494;
break;
case eomc_enc_aea3:
_deadzone[i] = eomc_defaultValue::DeadZone::jointWithAEA3;// TODO: temporary equal to 0.0 (fixit!)
break;
case eomc_enc_amo:
_deadzone[i] = eomc_defaultValue::DeadZone::jointWithAMO;// 0.0055;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace eomc_defaultValue
namespace DeadZone
{
const double jointWithAEA = 0.0494;
const double jointWithAEA3 = 0.0; // TODO: fix
const double jointWithAMO = 0.0055;
}
}
Expand Down