Sketch_Restart()

AWOl,

Sail boats are slowish.. but it is remote controlled, and possible to capsize, so if i get confused, or the micro controller gets confused, i do want a way back to the beggining.

So I think the watch-dog will go to hardware reset vector - and then wait for a timeout... and then start listening to commands.

Since I will already be in panic mode when i go for the reset, the extra delay is likely to panic me more.

Lefty,

C++ is a nice language. I have spent too many years doing coding. The first 10 years where a purgetory of assembler, fortran 4, pascal and c. Then we got a c++ compiler.

When you deal with something a lot/ like for 10+ years/ you have patterns and methods that make the problems easier to work with.

If you use C++ to represent what you know about the problem space then it frees you to concentrate on the novel parts of the problem. I really like C++ for this reason.

But since I know almost nothing about electronics, or the arduino, or the ATMEGAxx, I am using C++ to write C code.

And asking silly questions.

Dave