塔吊滑车移动
塔吊花车移动计算
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); }
####################
QQ 3087438119