From 285c79b95a163d4b9fd790e608827883ddb0d21f Mon Sep 17 00:00:00 2001 From: Kayman Date: Fri, 28 Sep 2018 17:31:22 +0900 Subject: [PATCH] deleted unused code. --- op3_demo/src/soccer/soccer_demo.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/op3_demo/src/soccer/soccer_demo.cpp b/op3_demo/src/soccer/soccer_demo.cpp index cf5db3c..37e2c3f 100644 --- a/op3_demo/src/soccer/soccer_demo.cpp +++ b/op3_demo/src/soccer/soccer_demo.cpp @@ -89,11 +89,6 @@ void SoccerDemo::process() if(enable_ == false) return; - // ball tracking - int tracking_status = tracking_status_; - - //tracking_status = ball_tracker_.processTracking(); - // check to start if (start_following_ == true) { @@ -119,26 +114,19 @@ void SoccerDemo::process() // ball following if (on_following_ball_ == true) { - switch(tracking_status) + switch(tracking_status_) { case BallTracker::Found: ball_follower_.processFollowing(ball_tracker_.getPanOfBall(), ball_tracker_.getTiltOfBall(), 0.0); - // if(tracking_status_ != tracking_status) - // setRGBLED(0x1F, 0x1F, 0x1F); break; case BallTracker::NotFound: ball_follower_.waitFollowing(); - // if(tracking_status_ != tracking_status) - // setRGBLED(0, 0, 0); break; default: break; } - - // if(tracking_status != tracking_status_) - // tracking_status_ = tracking_status; } // check fallen states