Bug help for my PX4 example application

Hello everybody, I’m new here. I am creating a simple example application in PX4 for a school project. I am using the nxp_rddrone146 board. When i run my application, it stops in the middle of a printf statement. Here is my code:

When i run this program, the output looks like: