Skip to content

Commit

Permalink
Added the mrie encoder. Increase version to 1.34.2 (robotology#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
valegagge authored and MSECode committed May 30, 2023
1 parent 75be52f commit b4a91fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions eth/embobj/plus/comm-v2/icub/EoMotionControl.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ static const eOmap_str_str_u08_t s_eomc_map_of_encoders[] =
{"amo", "eomc_enc_amo", eomc_enc_amo},
{"psc", "eomc_enc_psc", eomc_enc_psc},
{"pos", "eomc_enc_pos", eomc_enc_pos},
{"mrie", "eomc_enc_mrie", eomc_enc_mrie},

{"none", "eomc_enc_none", eomc_enc_none},
{"unknown", "eomc_enc_unknown", eomc_enc_unknown}
Expand Down Expand Up @@ -277,6 +278,7 @@ extern uint8_t eomc_encoder_get_numberofcomponents(eOmc_encoder_t encoder)
case eomc_enc_hallmotor:
case eomc_enc_amo:
case eomc_enc_aksim2:
case eomc_enc_mrie:
{
ret = 1;
} break;
Expand Down
3 changes: 2 additions & 1 deletion eth/embobj/plus/comm-v2/icub/EoMotionControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1141,12 +1141,13 @@ typedef enum
eomc_enc_pos = 11,
eomc_enc_aea3 = 12,
eomc_enc_aksim2 = 13,
eomc_enc_mrie = 14,

eomc_enc_none = 0,
eomc_enc_unknown = 255
} eOmc_encoder_t;

enum { eomc_encoders_numberof = 13 };
enum { eomc_encoders_numberof = 14 };
enum { eomc_encoders_maxnumberofcomponents = 4 };


Expand Down

0 comments on commit b4a91fb

Please sign in to comment.