Arduino Not Compiling – 'AF_Stepper' does not name a type
Shop › Forum › Makelangelo Polargraph Art Robot › Arduino Not Compiling – 'AF_Stepper' does not name a type
- This topic has 1 reply, 2 voices, and was last updated 8 years, 5 months ago by Dan.
-
AuthorPosts
-
2016-07-07 at 15:27 #10246AnonymousInactive
Hello,
I have an issue trying to compile the firmware_ams file in Arduino. I have been looking across the forum and the internet for a solution, but all that have been tried have not led to a sollution.
I have both the Adafruit_MotorShield and AFMotorDrawbot in the correct library folder in my documents, but still no success.
The error reads:
“firmware_ams.ino:123:43: error: AFMotorDrawbot/AFMotorDrawbot.h: No such file or directory
firmware_ams:150: error: ‘AF_Stepper’ does not name a type
firmware_ams:151: error: ‘AF_Stepper’ does not name a type
firmware_ams:178: error: ‘FORWARD’ was not declared in this scope
firmware_ams:179: error: ‘BACKWARD’ was not declared in this scope
firmware_ams:180: error: ‘FORWARD’ was not declared in this scope
firmware_ams:181: error: ‘BACKWARD’ was not declared in this scope
firmware_ams.ino: In function ‘void setFeedRate(float)’:
firmware_ams:264: error: ‘m1’ was not declared in this scope
firmware_ams:265: error: ‘m2’ was not declared in this scope
firmware_ams.ino: In function ‘void line(float, float, float)’:
firmware_ams:406: error: ‘m1’ was not declared in this scope
firmware_ams:410: error: ‘m2’ was not declared in this scope
firmware_ams:423: error: ‘m2’ was not declared in this scope
firmware_ams:427: error: ‘m1’ was not declared in this scope
firmware_ams.ino: In function ‘void motor_disengage()’:
firmware_ams:768: error: ‘m1’ was not declared in this scope
firmware_ams:769: error: ‘m2’ was not declared in this scope
firmware_ams.ino: In function ‘void motor_engage()’:
firmware_ams:779: error: ‘m1’ was not declared in this scope
firmware_ams:780: error: ‘m2’ was not declared in this scope
firmware_ams.ino: In function ‘void processConfig()’:
firmware_ams:841: error: ‘FORWARD’ was not declared in this scope
firmware_ams:842: error: ‘BACKWARD’ was not declared in this scope
firmware_ams:844: error: ‘BACKWARD’ was not declared in this scope
firmware_ams:845: error: ‘FORWARD’ was not declared in this scope
firmware_ams:850: error: ‘FORWARD’ was not declared in this scope
firmware_ams:851: error: ‘BACKWARD’ was not declared in this scope
firmware_ams:853: error: ‘BACKWARD’ was not declared in this scope
firmware_ams:854: error: ‘FORWARD’ was not declared in this scope
firmware_ams.ino: In function ‘void processCommand()’:
firmware_ams:999: error: ‘m1’ was not declared in this scope
firmware_ams:1009: error: ‘m2’ was not declared in this scope”Running on Windows 10 + Arduino 1.0.6 + Adafruit v1
Thank you in advance!
2016-07-07 at 17:02 #10247DanKeymasterI am running Arduino 1.6.7 and it compiles OK. Please update your Arduino and try again.
-
AuthorPosts
- You must be logged in to reply to this topic.