Richard Sewell
/
ucam
This is the code we showed at Uncraftivism
Diff: MotionFinder.cpp
- Revision:
- 1:70d90598d2e7
- Parent:
- 0:57f4fdadc97f
- Child:
- 2:01115080f6da
--- a/MotionFinder.cpp Fri Nov 20 14:40:48 2009 +0000 +++ b/MotionFinder.cpp Thu Dec 10 21:16:57 2009 +0000 @@ -27,6 +27,9 @@ m_xServoMinder = xServoMinder; m_yServoMinder = yServoMinder; + + + m_xServoMinder->moveTo( 1.0 ); wait( 1 ); m_xServoMinder->moveTo( 0.0 ); @@ -34,6 +37,7 @@ m_xServoMinder->moveTo( 0.5 ); wait( 1 ); + m_yServoMinder->moveTo( 1.0 ); wait( 1 ); m_yServoMinder->moveTo( 0.0 ); @@ -65,7 +69,7 @@ if( frame == NULL || frame->m_bad ) { if( m_resultFrame != NULL ) - m_resultFrame->m_bad = false; + m_resultFrame->m_bad = false; return; } @@ -164,7 +168,7 @@ } m_xServoMinder->moveTo( 1 - m_attentionX ); - m_yServoMinder->moveTo( 1 - m_attentionY ); + m_yServoMinder->moveTo( m_attentionY ); Frame::releaseFrame( &frame );