anchor.diff:        END IF
   
   
  -      ! Compute the first time derivatives, dxdt%StC_x(2) and dxdt%StC_x(4), of the continuous states,:
  +      ! Compute the first time derivatives, dxdt%StC_x(2), dxdt%StC_x(4), and dxdt%StC_x(6), of the continuous states,:
         IF (p%StC_DOF_MODE == DOFMode_Indept) THEN
   
            IF (p%StC_X_DOF) THEN
  
positive.code:    p%C_S(1) = InputFileData%StC_X_CS
     p%C_S(2) = InputFileData%StC_Y_CS
     p%C_S(3) = InputFileData%StC_Z_CS
  
     ! ground hook control damping files
     p%StC_CMODE = InputFileData%StC_CMODE
     p%StC_SA_MODE = InputFileData%StC_SA_MODE
  
negative.code:          ELSE
              C_Brake(2,i_pt) = 0
           END IF
  !FIXME: do we need the Z direction here also?
  
        ELSE IF (p%StC_CMODE == CMODE_Semi .AND. p%StC_SA_MODE == SA_CMODE_Ph_DF) THEN ! Phase Difference Algorithm with Damping On/Off
              ! X
  