Fix the wrong index of the buffer array
Create the global buffer array variable to receive the mavlink data