塔吊滑车移动

塔吊花车移动计算

void TowerPanel::slotMoveSlider(int sliderValue)
{
    
    slider_length = sliderValue*1.0f;
    hook_position_x = center_x*(-0.0f) + slider_length*cos(angleD);
    hook_position_y = center_y*(-0.0f) + slider_length*sin(angleD);

    QString logDataStr = QString("hook_position:(").append(QString::number(hookPositionVec.x())).append(",").append(QString::number(hookPositionVec.y())).append(",").append(QString::number(hookPositionVec.z())).append(")");
    tower_manage_ui.textEdit_logData->append(logDataStr);

    emit signalChangeHookCameraPosition(hookPositionVec);
}

 

 

 

 

 

 

 

 

 

####################

posted @ 2022-05-06 20:40  西北逍遥  阅读(39)  评论(0编辑  收藏  举报