Confusing of dataflash log NavBrg angle

I'm so confused about it. 

I graph the data of TargBrg, NavBrg. In my opinion, value of NavBrg should withing 0 and 360 degree, but NavBrg value is greater than 360 in fact.

Is there any thing wrong in parameter setting to APM or it's normal?

What's the mean about the degree is  greater than 360? 

Thanks a lot!!

Chih-Che Chang

3691124917?profile=original

 

.png

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • To me this looks like a bug. Every time the Nav bearing gets above 180 degrees it jumps to over 470 degrees. The maximum angle you are getting in your data is 655.36 or in centidegrees this is 65536 or 2^16 so it looks like a signed 16bit number is being interpreted as unsigned.

    I'm getting the same thing using apm:rover and APM planner instead of mission planner so maybe the bug is in the autopilot code.

    • Yes, it seem like a bug.
      The development team have solved the problem.

      look here

      Thanks a lot!!

  • Hi 
    I trace code found that NavBrg is centi-degree. And range should within -18000 to 18000.
    But value of my NavBrg log is within 0 to 655.36.
    I still can not solve the question.

    Could anyone help me?

    Thanks a lot!!

This reply was deleted.

Activity