I recently purchased radio shacks make it robotics starter kit and constructed the line following robot. The manual gave a URL to download the Arduino sketch needed to make the robot function correctly, but I got multiple errors upon trying to compile the sketch to upload to the Arduino Uno R3. At first it was just one error but then I checked the forum and someone said move the file RadioShackRobotics.h into the correct folder. After I did that I got this error message
Arduino: 1.8.2 (Windows Store 1.8.5.0) (Windows 10), Board: "Arduino/Genuino Uno"
C:\Users\Steven\AppData\Local\Temp\cciPtjx0.ltrans0.ltrans.o: In function `setup':
C:\Users\Steven\Downloads\2770406-Robotics-Starter-Kit-master\2770406-Robotics-Starter-Kit-master\Example sketches\linefollow/linefollow.ino:32: undefined reference to `RadioShackRobotics::line_following_setup()'
C:\Users\Steven\Downloads\2770406-Robotics-Starter-Kit-master\2770406-Robotics-Starter-Kit-master\Example sketches\linefollow/linefollow.ino:33: undefined reference to `RadioShackRobotics::all_stop()'
C:\Users\Steven\AppData\Local\Temp\cciPtjx0.ltrans0.ltrans.o: In function `loop':
C:\Users\Steven\Downloads\2770406-Robotics-Starter-Kit-master\2770406-Robotics-Starter-Kit-master\Example sketches\linefollow/linefollow.ino:60: undefined reference to `RadioShackRobotics::trigger_optical1()'
C:\Users\Steven\Downloads\2770406-Robotics-Starter-Kit-master\2770406-Robotics-Starter-Kit-master\Example sketches\linefollow/linefollow.ino:62: undefined reference to `RadioShackRobotics::trigger_optical2()'
C:\Users\Steven\Downloads\2770406-Robotics-Starter-Kit-master\2770406-Robotics-Starter-Kit-master\Example sketches\linefollow/linefollow.ino:70: undefined reference to `RadioShackRobotics::read_optical()'
C:\Users\Steven\Downloads\2770406-Robotics-Starter-Kit-master\2770406-Robotics-Starter-Kit-master\Example sketches\linefollow/linefollow.ino:114: undefined reference to `RadioShackRobotics::go_forward(int)'
C:\Users\Steven\Downloads\2770406-Robotics-Starter-Kit-master\2770406-Robotics-Starter-Kit-master\Example sketches\linefollow/linefollow.ino:116: undefined reference to `RadioShackRobotics::line_following_turn_left(int)'
C:\Users\Steven\Downloads\2770406-Robotics-Starter-Kit-master\2770406-Robotics-Starter-Kit-master\Example sketches\linefollow/linefollow.ino:118: undefined reference to `RadioShackRobotics::line_following_turn_right(int)'
C:\Users\Steven\Downloads\2770406-Robotics-Starter-Kit-master\2770406-Robotics-Starter-Kit-master\Example sketches\linefollow/linefollow.ino:120: undefined reference to `RadioShackRobotics::go_forward(int)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
so if anyone knows what I should do please respond slash comment to this post. I will attach the downloaded sketch to this post.
linefollow.ino (5.92 KB)