Mbed sensor parsing problem

Hi all, I want to sensor parsing using ‘advanced navigation’s spatial’ sensor. I construct the main code, but it is not work. I think <while ((an_packet = an_packet_decode(&an_decoder)) != NULL) > this loop not working .I don’t know what is problem. I need help.
the url is