Auto wastegate control