Visual SLAM for flying vehicles