Online trajectory planning and control of a MAV payload system in dynamic environments