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 latest fault state to motor status data structure #52

Merged
merged 6 commits into from
Dec 15, 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
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.22.1)
VERSION 1.22.2)

find_package(YCM 0.11.0 REQUIRED)

Expand Down
8 changes: 3 additions & 5 deletions eth/embobj/plus/comm-v2/icub/EoMotionControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ typedef enum
eomc_calibration_typeUndefined = 255 // cannot change
} eOmc_calibration_type_t;



// -- all the possible data service structures


Expand Down Expand Up @@ -794,7 +792,7 @@ typedef struct //size is 1+1+1+1 = 4
eOenum08_t controlmodestatus; /**< use eOmc_controlmode_t. */
eOenum08_t interactionmodestatus; /**< use values from eOmc_interactionmode_t */
eObool_t ismotiondone; /**< simply eobool_true or eobool_false */
uint8_t filler[1];
uint8_t filler[1];
} eOmc_joint_status_modes_t;


Expand Down Expand Up @@ -945,8 +943,8 @@ typedef struct // size is: 4+4+4+2+2+2+2 = 20
**/
typedef struct // size is: 20+4+0 = 24
{
eOmc_motor_status_basic_t basic; /**< the basic status of a motor */
uint8_t filler[4];
eOmc_motor_status_basic_t basic; /**< the basic status of a motor */
uint32_t mc_fault_state; /**< represents the most recent motion controller fault state */
} eOmc_motor_status_t; EO_VERIFYsizeof(eOmc_motor_status_t, 24)


Expand Down