Next: Are there any great C++ people at Railpage? Especially with Arduino experience.
(Do something about the ridiculous no caps title. How else to write C++?)
I'm still a beginner at C++ and do dabble in Arduinos too.Hi David, I'm still writing the scoping documents. Being a PM using AgilePM and PRINCE2, the need to structure things has now become second nature to me. Unlike the early days when my VB.Net offerings were shambolic because I just went headlong into things and I had a manager who'd alter scope (meaning add to it!) on a whim. Doesn't work.
Actually a Vicual C++ subject as part of a tafe course was very useful for the arduino stuff as well.
What arre you trying to do ?
It depends on what type of device you’re building. How reliable does it have to be? Will it run continuously for long periods? Presumably it doesn’t have much memory, so things like memory leaks and segmentation faults (eg dangling pointers) could be a problem. Although it is C++ it seems like you need someone with experience using the Arduino libraries that you can consult with face-to-face. I couldn’t find any complex Arduino programs on the net, only simple ‘hello world’ ones that blink an LED, so it is difficult to tell what level of C++ is required.Thanks for the offer. I'll take you up on that.
Here’s some advice from a sage on the Internet (unfortunately the page got lost so am unable to provide a link) in response to a problem a user was having with an Arduino project, which started then just inexplicably stopped some time later:.
“Looks like you're talking about runtime errors (of the memory leak/segfault type) here.
There isn't any way to discover such errors (unless you comb very carefully through the code) in code that's already written. However, it is quite easy to prevent these from happening while writing the code. Just be very careful when writing loops or recursive calls; ask yourself "could this get out of hand?". If it looks like these is scope for it to "get out of hand", then write code to protect against that.
About segfaults -- just check the boundary values of array indices and you ought to be OK. If you're using pointers, then please be careful with pointer arithmetic.”
Feel free to post any queries and we can have a go at them.
The reason you’ll find no hardcore projects and programming examples for arduino is because no one in industry uses arduino.Yes, I've coded in assembler. Often. I haven't seen C used in a while but I've been out of the loop (get it?) for a while.
Any decent firmware coder won’t be working on a project using an aruino, they’ll be coding for the raw ATMEL device. While they might be coding in C, more likely they won’t be trusting their project’s operational qualities and reliability to a compiler. They’ll be coding directly in assembly. Some of the most hardcore projects I have seen have been coded straight into hex, as one of my old school programming lecturers once said ‘telling it exactly what to do, is the only exact way of knowing what it will do’.