Hi,
I am working with 4 wheel drive robot and trying to compile the example provided by Adafruit.
And I get like tonnes of errors obviously not finding the AFMotor.h file.
I tried putting it into the appropriate folder as described on the web-site.
What should I do?
thanks
Library
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Library
What are the exact errors you get?
-
- Posts: 4
- Joined: Mon Jun 09, 2014 10:30 pm
Re: Library
MotorTest4wd:14: error: 'AF_DCMotor' does not name a type
MotorTest4wd:15: error: 'AF_DCMotor' does not name a type
MotorTest4wd:16: error: 'AF_DCMotor' does not name a type
MotorTest4wd:17: error: 'AF_DCMotor' does not name a type
MotorTest4wd.ino: In function 'void setup()':
MotorTest4wd:28: error: 'Motor_Left_Front' was not declared in this scope
MotorTest4wd:29: error: 'Motor_Right_Front' was not declared in this scope
MotorTest4wd:30: error: 'Motor_Left_Rear' was not declared in this scope
MotorTest4wd:31: error: 'Motor_Right_Rear' was not declared in this scope
MotorTest4wd.ino: In function 'void loop()':
MotorTest4wd:38: error: 'Motor_Left_Front' was not declared in this scope
MotorTest4wd:38: error: 'FORWARD' was not declared in this scope
MotorTest4wd:39: error: 'Motor_Left_Rear' was not declared in this scope
MotorTest4wd:41: error: 'Motor_Right_Front' was not declared in this scope
MotorTest4wd:41: error: 'BACKWARD' was not declared in this scope
MotorTest4wd:42: error: 'Motor_Right_Rear' was not declared in this scope
MotorTest4wd:46: error: 'RELEASE' was not declared in this scope
MotorTest4wd:15: error: 'AF_DCMotor' does not name a type
MotorTest4wd:16: error: 'AF_DCMotor' does not name a type
MotorTest4wd:17: error: 'AF_DCMotor' does not name a type
MotorTest4wd.ino: In function 'void setup()':
MotorTest4wd:28: error: 'Motor_Left_Front' was not declared in this scope
MotorTest4wd:29: error: 'Motor_Right_Front' was not declared in this scope
MotorTest4wd:30: error: 'Motor_Left_Rear' was not declared in this scope
MotorTest4wd:31: error: 'Motor_Right_Rear' was not declared in this scope
MotorTest4wd.ino: In function 'void loop()':
MotorTest4wd:38: error: 'Motor_Left_Front' was not declared in this scope
MotorTest4wd:38: error: 'FORWARD' was not declared in this scope
MotorTest4wd:39: error: 'Motor_Left_Rear' was not declared in this scope
MotorTest4wd:41: error: 'Motor_Right_Front' was not declared in this scope
MotorTest4wd:41: error: 'BACKWARD' was not declared in this scope
MotorTest4wd:42: error: 'Motor_Right_Rear' was not declared in this scope
MotorTest4wd:46: error: 'RELEASE' was not declared in this scope
-
- Posts: 4
- Joined: Mon Jun 09, 2014 10:30 pm
Re: Library
forgot to mention:
Win 7 environment
Win 7 environment
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Library
See if this will help. https://learn.adafruit.com/adafruit-all ... nstall-use
Also it helps if you post Arduino questions in the Arduino forums further down.
Also it helps if you post Arduino questions in the Arduino forums further down.
Please be positive and constructive with your questions and comments.