Safety Backups in ProgrammingI'm curious of your ideas for this. I've tried backup code for my older robots but it never really worked. Its really hard for a robot to know that A) it screwed up and B) how to fix it . . .
Well the backup code I am currently running on my new line following robot , "remembers" where the line was 10 seconds ago in case of mistake, and uses the sonar to go back.
Also, I use the sonar to verify that it is possible for the robot to go forward ( its possible theres no wall and there is a line)
all my code is in PICBASIC/ ASM and is for PIC micros. So I guess I'll post the code in BASIC and if anyone knows how to translate that to C for other people's AVRs