Skip to content

Commit

Permalink
embObjAnalogSensor: fix compilation after the removal of EoTheInertia…
Browse files Browse the repository at this point in the history
…ls2 service

This PR fixes a regressio of robotology/robots-configuration#595
  • Loading branch information
Nicogene committed Dec 12, 2023
1 parent f6ad2a6 commit 53a85cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ jobs:
-DENABLE_icubmod_canBusSkin:BOOL=ON \
-DENABLE_icubmod_canBusVirtualAnalogSensor:BOOL=ON \
-DENABLE_icubmod_embObjFTsensor:BOOL=ON \
-DENABLE_icubmod_embObjAnalogSensor:BOOL=ON \
-DENABLE_icubmod_embObjIMU:BOOL=ON \
-DENABLE_icubmod_embObjInertials:BOOL=ON \
-DENABLE_icubmod_embObjMais:BOOL=ON \
Expand Down
16 changes: 8 additions & 8 deletions src/libraries/icubmod/embObjAnalog/embObjAnalogSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ bool embObjAnalogSensor::open(yarp::os::Searchable &config)
}
else if(AS_Type_INERTIAL_MTB == _as_type)
{
servcategory = eomn_serv_category_inertials;
servcategory = eomn_serv_category_inertials3;
}


Expand Down Expand Up @@ -440,7 +440,7 @@ bool embObjAnalogSensor::open(yarp::os::Searchable &config)

case AS_Type_INERTIAL_MTB:
{
entity = eoprot_entity_as_inertial;
entity = eoprot_entity_as_inertial3;
ret = sendConfig2SkinInertial(config);
} break;

Expand Down Expand Up @@ -483,10 +483,10 @@ bool embObjAnalogSensor::open(yarp::os::Searchable &config)
{
// start the configured sensors

eOas_inertial_commands_t startCommand = {0};
eOas_inertial3_commands_t startCommand = {0};
startCommand.enable = 1;

uint32_t id32 = eoprot_ID_get(eoprot_endpoint_analogsensors, eoprot_entity_as_inertial, 0, eoprot_tag_as_inertial_cmmnds_enable);
uint32_t id32 = eoprot_ID_get(eoprot_endpoint_analogsensors, eoprot_entity_as_inertial3, 0, eoprot_tag_as_inertial3_cmmnds_enable);
if(false == res->setRemoteValue(id32, (uint8_t*) &startCommand))
{
yError() << "embObjAnalogSensor::open() fails to command the start transmission of the inertials";
Expand Down Expand Up @@ -1132,8 +1132,8 @@ bool embObjAnalogSensor::init()

case AS_Type_INERTIAL_MTB:
{
servcategory = eomn_serv_category_inertials;
protoid = eoprot_ID_get(eoprot_endpoint_analogsensors, eoprot_entity_as_inertial, 0, eoprot_tag_as_inertial_status);
servcategory = eomn_serv_category_inertials3;
protoid = eoprot_ID_get(eoprot_endpoint_analogsensors, eoprot_entity_as_inertial3, 0, eoprot_tag_as_inertial3_status);
} break;

default:
Expand Down Expand Up @@ -1290,7 +1290,7 @@ eth::iethresType_t embObjAnalogSensor::type()

case AS_Type_INERTIAL_MTB:
{
ret = eth::iethres_analoginertial;
ret = eth::iethres_analoginertial3;
} break;

default:
Expand Down Expand Up @@ -1424,7 +1424,7 @@ bool embObjAnalogSensor::fillDatOfMais(void *as_array_raw)

bool embObjAnalogSensor::fillDatOfInertial(void *inertialdata)
{
eOas_inertial_status_t *status = (eOas_inertial_status_t*) inertialdata;
eOas_inertial3_status_t *status = (eOas_inertial3_status_t*) inertialdata;

return true;

Expand Down

0 comments on commit 53a85cc

Please sign in to comment.