Revision 7ed40bef src/server/gaze_motion_generator.cpp

View differences:

src/server/gaze_motion_generator.cpp
92 92
    float ud_max    = OMR_LIMIT_TRIGGERS_NECK_SACCADE * joint_interface->get_joint_max(JointInterface::ID_EYES_BOTH_UD);
93 93

  
94 94
    if (
95
        (eye_target_l < left_min) || (eye_target_l > left_max) ||
96
        (eye_target_r < right_min) || (eye_target_r > right_max) ||
97
        (eye_target_ud < ud_min) || (eye_target_ud > ud_max)){
95
            (eye_target_l < left_min) || (eye_target_l > left_max) ||
96
            (eye_target_r < right_min) || (eye_target_r > right_max) ||
97
            (eye_target_ud < ud_min) || (eye_target_ud > ud_max)){
98 98
        //the eyeball gets close to OMR, activate a neck compensation motion:
99 99
        neck_saccade_omr = true;
100 100
    }else{

Also available in: Unified diff