Revision 87b50988 src/server/reflexxes_motion_generator.cpp

View differences:

src/server/reflexxes_motion_generator.cpp
83 83
    printf("HTS: diff = %f ms, pos=%f --> %f\n", time_diff*1000.0,current_position, position_now);
84 84

  
85 85

  
86
    reflexxes_position_input->CurrentPositionVector->VecData[dof]  = position_now;
86
    //reflexxes_position_input->CurrentPositionVector->VecData[dof]  = position_now;
87 87
    //reflexxes_position_input->CurrentVelocityVector->VecData[dof]  = current_speed;
88 88

  
89 89
    // safety: libreflexxes does not like zero accellerations...
......
108 108

  
109 109
    //feed back values:
110 110
    for(int i=0; i<dof_count; i++){
111
        //reflexxes_position_input->CurrentPositionVector->VecData[i]     = reflexxes_position_output->NewPositionVector->VecData[i];
111
        reflexxes_position_input->CurrentPositionVector->VecData[i]     = reflexxes_position_output->NewPositionVector->VecData[i];
112 112
        reflexxes_position_input->CurrentVelocityVector->VecData[i]     = reflexxes_position_output->NewVelocityVector->VecData[i];
113 113
        reflexxes_position_input->CurrentAccelerationVector->VecData[i] = reflexxes_position_output->NewAccelerationVector->VecData[i];
114 114
    }

Also available in: Unified diff