Learned Threshold used for capture trigger

Everything seems to be working pretty well.  Code ready for cleanup