|
|
|
@ -454,6 +454,16 @@ bool deviceNodeCamera::create(){ |
|
|
|
mojoKernel *tKRNL = mojoKernel::getInstance(); |
|
|
|
if( tKRNL ) { |
|
|
|
m_bSkeepPositioningWait = (( tKRNL->getMediaMode() & EVE_OUTPUT_VIDEO ) == EVE_OUTPUT_VIDEO ); |
|
|
|
#ifdef DEBUG
|
|
|
|
char ttTT[128]; |
|
|
|
sprintf( ttTT, "Kernel Media Mode:%d", tKRNL->getMediaMode() ); |
|
|
|
LOG( ttTT ); |
|
|
|
if ( m_bSkeepPositioningWait ) { |
|
|
|
LOG("Camera No Wait On Pos!"); |
|
|
|
} else { |
|
|
|
LOG("Camera Will Wait On Pos!"); |
|
|
|
}; |
|
|
|
#endif
|
|
|
|
} else { |
|
|
|
LOG_ERROR("No Kernel Instance!"); |
|
|
|
}; |
|
|
|
@ -994,7 +1004,7 @@ void deviceNodeCamera::m_fThreadProc( void ){ |
|
|
|
NULL, NULL, tData ); |
|
|
|
if( tEVT ){ |
|
|
|
#ifdef DEBUG
|
|
|
|
LOG("BCAST CAM ONPOS"); |
|
|
|
LOG("INSTANT BCAST CAM ONPOS"); |
|
|
|
#endif
|
|
|
|
//tEVT->m_db_id = tTASK->source_evt_id; // EVT ids embed in DATA
|
|
|
|
m_pBEH->broadcast( tEVT ); |
|
|
|
@ -1021,6 +1031,9 @@ void deviceNodeCamera::m_fThreadProc( void ){ |
|
|
|
}; |
|
|
|
// To Accept any new ROI's ??
|
|
|
|
setWM( CAM_WS_READY ); |
|
|
|
#ifdef DEBUG
|
|
|
|
LOG("Start Waiting Cam On Position!"); |
|
|
|
#endif
|
|
|
|
if (!m_pProtocol->waitMoveIsDone()) { |
|
|
|
//Some Cameras does not upport that :(
|
|
|
|
//LOG_ERROR("Cannot Issue getPosition Command!->Restart Camera?");
|
|
|
|
|