First Target Detect code working on BBB