Beste JoostR ,
Dat had ik al gedaan, maar daarna kreeg ik het volgende:
Arduino: 1.6.13 (Windows 7), Board:"Arduino/Genuino Uno"
E:\Arduino\Sketches\sketch_feb08a\sketch_feb08a.ino: In function 'void setup()':
sketch_feb08a:13: error: request for member 'setSpeed' in 'motor1', which is of non-class type 'int'
motor1.setSpeed(105); //set the speed of the motors, between 0-255
^
sketch_feb08a:14: error: request for member 'setSpeed' in 'motor2', which is of non-class type 'int'
motor2.setSpeed (105);
^
E:\Arduino\Sketches\sketch_feb08a\sketch_feb08a.ino: In function 'void loop()':
sketch_feb08a:37: error: request for member 'run' in 'motor1', which is of non-class type 'int'
motor1.run(FORWARD); // Turn as long as there's an obstacle ahead.
^
sketch_feb08a:37: error: 'FORWARD' was not declared in this scope
motor1.run(FORWARD); // Turn as long as there's an obstacle ahead.
^
sketch_feb08a:38: error: request for member 'run' in 'motor2', which is of non-class type 'int'
motor2.run (BACKWARD);
^
sketch_feb08a:38: error: 'BACKWARD' was not declared in this scope
motor2.run (BACKWARD);
^
sketch_feb08a:44: error: request for member 'run' in 'motor1', which is of non-class type 'int'
motor1.run(FORWARD); //if there's no obstacle ahead, Go Forward!
^
sketch_feb08a:44: error: 'FORWARD' was not declared in this scope
motor1.run(FORWARD); //if there's no obstacle ahead, Go Forward!
^
sketch_feb08a:45: error: request for member 'run' in 'motor2', which is of non-class type 'int'
motor2.run(FORWARD);
^
exit status 1
request for member 'setSpeed' in 'motor1', which is of non-class type 'int'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Helaas kan ik hier echt niks mee.
Is het misschien handiger om een afspraak te maken op de TU?
Als dit kan het liefst zo snel mogelijk, want er komt een deadline aan op 22 feb.
Gr,
Daniël & Jaco