Revision 708960ff src/server/reflexxes_motion_generator.cpp

View differences:

src/server/reflexxes_motion_generator.cpp
67 67
    reflexxes_position_input->MaxAccelerationVector->VecData[dof] = max_accel;
68 68
    reflexxes_position_input->TargetVelocityVector->VecData[dof]  = 0.0; //target speed is zero (really?)
69 69

  
70
    /*
70 71
    // feed back current pos & velocity
71 72
    // as we have to deal with some latency we will forecast the current
72 73
    // position using the old speed, position and the latency:
......
80 81
    // under the assumption that the speed is "constant" during this short period
81 82
    float position_now = current_position + time_diff * current_speed;
82 83

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

  
85

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

  
89 89
    // safety: libreflexxes does not like zero accellerations...
90 90
    if (reflexxes_position_input->MaxAccelerationVector->VecData[dof] == 0.0){

Also available in: Unified diff