Skip to content

Commit

Permalink
Add latest fault state to motor status data structure (#52)
Browse files Browse the repository at this point in the history
* Add motor faults bitmask to motor status struct

* Add usage of filler data of joint status modes for joint fault states mask

* Add file to previous commit

* Renamed variables of interest for clarity

* Remove unused struct for fault messaging

* increase icub-firmware-shared version to 1.22.2
  • Loading branch information
mfussi66 authored Dec 15, 2021
1 parent b1a1875 commit 7c3d107
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
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

0 comments on commit 7c3d107

Please sign in to comment.