Can you spot my Arduino mistake?


This code is supposed to run a skycam (four motorized cables that move a camera through the air).
It’s taken from the Makelangelo firmware ( which has many of the same definitions and parameters… and yet in this one it says those definitions don’t exist.

I suspect it’s a missing #endif or some other precompiler directive but I don’t know for sure.
Having stared at it for a couple hours and tried things like commenting out large sections to eliminate options, I’ve run out of ideas.

So, Fresh Eyes, can you see what I’ve missed?

Please and thank you!