~shadowrobot/sr-ros-interface-ethercat/demo_hand_fr_comp

« back to all changes in this revision

Viewing changes to sr_robot_lib/src/sr_robot_lib.cpp

  • Committer: Ugo Cupcic
  • Date: 2011-12-09 10:19:52 UTC
  • Revision ID: ugo@shadowrobot.com-20111209101952-3btcs2o4ktp4lp04
Correct reading of the assembly date.

Show diffs side-by-side

added added

removed removed

Lines of Context:
690
690
        case MOTOR_SLOW_DATA_ASSEMBLY_DATE_MMDD:
691
691
          actuator->state_.assembly_data_month =
692
692
            static_cast<unsigned int>(static_cast<int16u>(status_data->motor_data_packet[index_motor_in_msg].misc)
693
 
                                      / 100);
 
693
                                      >> 8);
694
694
          actuator->state_.assembly_data_day =
695
 
            static_cast<unsigned int>(static_cast<int16u>(status_data->motor_data_packet[index_motor_in_msg].misc))
696
 
            - actuator->state_.assembly_data_month;
 
695
            static_cast<unsigned int>(static_cast<int16u>(status_data->motor_data_packet[index_motor_in_msg].misc)
 
696
                                      && 0x00FF);
697
697
          break;
698
698
        case MOTOR_SLOW_DATA_CONTROLLER_F:
699
699
          actuator->state_.force_control_f_ =