Programming is hard. It really is. Certainly lots of people do it, but there are a lot of bad programs out there
As painful as it sounds, you need to step away from robotics and learn how to program. Learn `C'. There are numerous tutorials and books out there. Pick something, start it, and finish it.
While learning C, you will discover that the hardest part of programming does not involve programming at all. Really, the hardest part of programming is developing an algorithm. It's very important to understand that if you can't clearly state how to solve a problem in English (or your native tongue!), you certainly won't be able to solve the problem in `C'.
So, you're plan of attack should be: pick tutorial / book. Work your way through it.
Once you've finished the tutorial / book, WRITE PROGRAMS. Write programs for just about anything you can think of. Even "trivial" things such as a tip calculator teach very basic fundamentals of programming: gathering input, validating input, processing input, producing output....
It's important to not give up. It's tough and if there was ever a trade skill that builds on itself, it's programming. So stick in there, and learn a bit at a time. If you have any questions, no matter how simple, just ask. If you don't want to post here, send me a PM and I'll do my best to answer you.
Good luck and don't give up.