Automatic thickness planer