Online optimization-based predictive flight control using first-order methods