f5soh

  • *****
  • 4572
    • LibrePilot
Re: Debugging CC3D board using SWD and an STlink-v2 programmer
« Reply #15 on: April 20, 2016, 07:21:29 pm »
Sorry, but where you see the 0.4s lag "eye measurement" ?

Edit: Post the diff from debug changes you did in receiver.c

vv

  • *
  • 20
Re: Debugging CC3D board using SWD and an STlink-v2 programmer
« Reply #16 on: April 20, 2016, 07:25:39 pm »
I explained everything in the last post. Are you gonna help or not?
« Last Edit: April 20, 2016, 07:34:41 pm by f5soh »

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Debugging CC3D board using SWD and an STlink-v2 programmer
« Reply #17 on: April 20, 2016, 07:35:03 pm »
Shit, i edit your post.

Calm down, please. That YOU with your issue, and I try to understand.

So,
How do you setup the servo output and the "link" between the input stick and output (servo)
Please post a config file. File > Export UAV settings.

vv

  • *
  • 20
Re: Debugging CC3D board using SWD and an STlink-v2 programmer
« Reply #18 on: April 20, 2016, 07:44:11 pm »
Here is my settings. I often sound mad when texting,  sorry about that, I get that a lot :)

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Debugging CC3D board using SWD and an STlink-v2 programmer
« Reply #19 on: April 20, 2016, 09:03:34 pm »
Ok, loaded your settings and just calibrated.
Taranis + old D4FR PPM receiver.

What do you think ?

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Debugging CC3D board using SWD and an STlink-v2 programmer
« Reply #20 on: April 20, 2016, 09:10:27 pm »
And this one using PWMSync 500Hz

Brian

  • *
  • 119
Re: Debugging CC3D board using SWD and an STlink-v2 programmer
« Reply #21 on: April 20, 2016, 10:06:30 pm »
If you're seeing a crash when adding debug print statements it's almost always (in my experience) a shortage of stack space.  Try increasing the stack space for the task that you're trying to debug.

vv

  • *
  • 20
Re: Debugging CC3D board using SWD and an STlink-v2 programmer
« Reply #22 on: April 20, 2016, 10:13:12 pm »
I just did a comparison with two servos, one from receiver and the other via CC3D at the same time. It looks good all of a sudden, little to no difference.. Idk, ether I am going crazy or I was using an old firmware before or something. I just got the thing so I am not sure what I was doing before my first flights, but I know that it was really annoying to fly, especially in the wind. I wouldn't have gone through all that trouble if I wasn't sure something was wrong. I will try the thing on the plane again tomorrow and see how it feels.

Thanks for your trouble and effort and everything! I'll report back tomorrow. Also, let me know if you need some help with development, I wouldn't mind.

I need a vacation...

vv

  • *
  • 20
Re: Debugging CC3D board using SWD and an STlink-v2 programmer
« Reply #23 on: April 20, 2016, 10:16:55 pm »
@Brian That makes a lot of sense, thanks, I'll try it when I run into new "problems", it seems for second now that all is looking and I don't even have to debug that anymore, but we'll see tomorrow. Need to rest now...