Adaptive control of variable flow ducted rockets