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

Added calibration 14 data struct #81

Merged
merged 2 commits into from
Apr 7, 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.34.0)
VERSION 1.34.1)

find_package(YCM 0.11.0 REQUIRED)

Expand Down
22 changes: 22 additions & 0 deletions eth/embobj/plus/comm-v2/icub/EoMotionControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ typedef enum
eomc_calibration_type11_cer_hands = 11, // cannot change
eomc_calibration_type12_absolute_sensor = 12, // cannot change //substitutes type 3
eomc_calibration_type13_cer_hands_2 = 13, // cannot change
eomc_calibration_type14_qenc_hard_stop_and_fap = 14, // cannot change
eomc_calibration_typeMixed = 254, // cannot change
eomc_calibration_typeUndefined = 255 // cannot change
} eOmc_calibration_type_t;
Expand Down Expand Up @@ -441,6 +442,26 @@ typedef struct
int32_t rawValueAtZeroPos3;
} eOmc_calibrator_params_type13_cer_hands_2_t;


/** @typedef typedef struct eOmc_calibrator_params_type14_qenc_hard_stop_and_fap_t
@brief contains the params in case of eomc_calibration_type14_qenc_hard_stop_and_fap_t
**/
typedef struct
{
int32_t pwmlimit;
int32_t final_pos;
uint8_t invertdirection;
uint8_t rotation;
uint8_t filler;
int32_t offset;
int32_t calibrationZero;

} eOmc_calibrator_params_type14_qenc_hard_stop_and_fap_t;





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


Expand Down Expand Up @@ -551,6 +572,7 @@ typedef struct // size is 1+3+4*4 = 20
eOmc_calibrator_params_type11_cer_hands_t type11;
eOmc_calibrator_params_type12_absolute_sensor_t type12;
eOmc_calibrator_params_type13_cer_hands_2_t type13;
eOmc_calibrator_params_type14_qenc_hard_stop_and_fap_t type14;
} params; /**< the params of the calibrator */
} eOmc_calibrator32_t; EO_VERIFYsizeof(eOmc_calibrator32_t, 28)

Expand Down