Changeset 4173
- Timestamp:
- 05/25/04 14:11:25 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/videodisplay.cpp
r3401 r4173 19 19 #include "amclog.h" 20 20 #include "amcmotor.h" 21 #include "amcdefs.h" 21 22 #include "amcmirrorpanel.h" 22 23 #include "amcprogdlg.h" … … 271 272 Y_Dec_10_Button->setEnabled( p_zEnable ); 272 273 Y_Dec_100_Button->setEnabled( p_zEnable ); 273 274 274 275 if( p_zEnable ) 275 276 { … … 337 338 if( ( iRefX == -1 ) && ( iRefY == -1 ) ) 338 339 return; 340 int iDx, iDy; 341 iDx = m_videoFrame->m_iCenterX - CAMERA_X; 342 iDy = m_videoFrame->m_iCenterY - CAMERA_Y; 343 iRefX += iDx; 344 iRefY += iDy; 339 345 int iStepX, iStepY; 340 346 calcSteps( iRefX, iRefY, iStepX, iStepY ); … … 359 365 if( ( iVSpotX == -1 ) && ( iVSpotY == -1 ) ) 360 366 return; 361 qDebug("Spot at x,y: %4d %4d", iVSpotX, iVSpotY ); 362 qDebug("Ref at x,y: %4d %4d", p_iRefX, p_iRefY ); 367 qDebug("Spot at x,y: %4d %4d", iVSpotX, iVSpotY ); 368 qDebug("Ref at x,y: %4d %4d", p_iRefX, p_iRefY ); 363 369 364 370 double dX = p_iRefX - iVSpotX;
Note:
See TracChangeset
for help on using the changeset viewer.