Increase threshold; make ONLINE invoke odometry periodically; and attach the line logic to the big elseif