Localization matters too: How localization error affects UAV flight