Turning Target code

Can someone please help with the source code its coming up with errors galore :slight_smile:

Ardino turn target.txt (11 KB)

There are several one line comments that have been wrapped. Restoring them to one line would be a good start.

tony220171:
Can someone please help with the source code its coming up with errors galore :slight_smile:

Good thing you found the problem before you wrote too much code.

I tried to compile it after sorting the OP's wrapped comments and got the error I was expecting:

'refresh' is not a member of 'Servo'

That's pretty self explanatory.

@OP if you wrote this code what's that all about? The servo library pulses an attach()-ed servo every 20ms by default. See servo.h:

#define REFRESH_INTERVAL    20000     // minumim time to refresh servos in microseconds

If you didn't write it I'm surprised there's no attribution in the comments. But you should talk to the author about the errors maybe?

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom.. :slight_smile: