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

Update EoMotionControl to support the new velocityThres parameter #86

Merged
merged 4 commits into from
Nov 21, 2023
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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
cmake_minimum_required(VERSION 3.12)

project(icub_firmware_shared
VERSION 1.37.0)
VERSION 1.37.1)

find_package(YCM 0.11.0 REQUIRED)

Expand Down
9 changes: 5 additions & 4 deletions eth/embobj/plus/comm-v2/icub/EoMotionControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ typedef struct
float32_t viscous_neg_val;
float32_t coulomb_pos_val;
float32_t coulomb_neg_val;
} eOmc_FrictionParams_t; EO_VERIFYsizeof(eOmc_FrictionParams_t, 16)
float32_t velocityThres_val;
} eOmc_FrictionParams_t; EO_VERIFYsizeof(eOmc_FrictionParams_t, 20)

typedef struct
{
Expand Down Expand Up @@ -648,7 +649,7 @@ typedef struct
int8_t bemf_scale;
int8_t ktau_scale;
int8_t filler02[2];
} eOmc_motor_params_t; EO_VERIFYsizeof(eOmc_motor_params_t, 28)
} eOmc_motor_params_t; EO_VERIFYsizeof(eOmc_motor_params_t, 32)

// -- all the possible data holding structures used in a motor

Expand Down Expand Up @@ -713,7 +714,7 @@ typedef struct // size is: 40+40+40+8+8+12+4+4+28+2+1+1+4+4+4+3
float32_t gearbox_E2J;
float32_t deadzone;
eOmc_kalman_filter_config_t kalman_params; /**< the kalman filter parameters */
} eOmc_joint_config_t; EO_VERIFYsizeof(eOmc_joint_config_t, 236)
} eOmc_joint_config_t; EO_VERIFYsizeof(eOmc_joint_config_t, 240)


/** @typedef typedef struct eOmc_status_ofpid_legacy_t
Expand Down Expand Up @@ -916,7 +917,7 @@ typedef struct // size is 236+96+4+44+0 = 380
eOmc_joint_status_t status; /**< the status of the joint */
eOmc_joint_inputs_t inputs; /**< it contains all the values that a host can send to a joint as inputs */
eOmc_joint_commands_t cmmnds; /**< it contains all the commands that a host can send to a joint */
} eOmc_joint_t; EO_VERIFYsizeof(eOmc_joint_t, 380);
} eOmc_joint_t; EO_VERIFYsizeof(eOmc_joint_t, 384);



Expand Down
2 changes: 1 addition & 1 deletion eth/embobj/plus/comm-v2/protocol/api/EoProtocolMC.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extern "C" {
// - declaration of public user-defined types -------------------------------------------------------------------------


enum { eoprot_version_mc_major = 1, eoprot_version_mc_minor = 25 };
enum { eoprot_version_mc_major = 1, eoprot_version_mc_minor = 26 };

enum { eoprot_entities_mc_numberof = eomc_entities_numberof };

Expand Down