Arduino: 1.8.16 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\Jlo\Documents\Arduino\capston\capstonedraft\capstonedraft.ino: In function 'void loop()':
capstonedraft:51:13: error: 'Stop' was not declared in this scope
Stop(); //Initialize with motors stoped.
^~~~
C:\Users\Jlo\Documents\Arduino\capston\capstonedraft\capstonedraft.ino:51:13: note: suggested alternative: 'loop'
Stop(); //Initialize with motors stoped.
^~~~
loop
capstonedraft:54:17: error: 'forward' was not declared in this scope
forward();
^~~~~~~
C:\Users\Jlo\Documents\Arduino\capston\capstonedraft\capstonedraft.ino:54:17: note: suggested alternative: 'fread'
forward();
^~~~~~~
fread
capstonedraft:57:17: error: 'back' was not declared in this scope
back();
^~~~
capstonedraft:60:17: error: 'left' was not declared in this scope
left();
^~~~
capstonedraft:63:17: error: 'right' was not declared in this scope
right();
^~~~~
capstonedraft:66:17: error: 'forwardleft' was not declared in this scope
forwardleft();
^~~~~~~~~~~
capstonedraft:69:17: error: 'forwardright' was not declared in this scope
forwardright();
^~~~~~~~~~~~
capstonedraft:72:17: error: 'backleft' was not declared in this scope
backleft();
^~~~~~~~
capstonedraft:75:17: error: 'backright' was not declared in this scope
backright();
^~~~~~~~~
capstonedraft:113:15: error: 'brakeOn' was not declared in this scope
brakeOn();
^~~~~~~
C:\Users\Jlo\Documents\Arduino\capston\capstonedraft\capstonedraft.ino:113:15: note: suggested alternative: 'brakeTime'
brakeOn();
^~~~~~~
brakeTime
capstonedraft:117:15: error: 'brakeOff' was not declared in this scope
brakeOff();
^~~~~~~~
C:\Users\Jlo\Documents\Arduino\capston\capstonedraft\capstonedraft.ino:117:15: note: suggested alternative: 'brkonoff'
brakeOff();
^~~~~~~~
brkonoff
capstonedraft:123:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:129:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:135:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:141:2: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:146:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:151:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:156:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:161:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:167:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:175:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:201:1: error: a function-definition is not allowed here before '{' token
{
^
capstonedraft:203:1: error: expected '}' at end of input
}
^
exit status 1
'Stop' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
#define in1 3 //L298n Motor Driver pins.
#define in2 10
#define in3 4
#define in4 5
#define LED 13
// l298n motor driver
int command; //Int to store app command state.
int Speed = 204; // 0 - 255.
int Speedsec;
int buttonState = 0;
int lastButtonState = 0;
int Turnradius = 0; //Set the radius of a turn, 0 - 255 Note:the robot will malfunction if this is higher than int Speed.
int brakeTime = 45;
int brkonoff = 1; //1 for the electronic braking system, 0 for normal.
//end
void setup()
{
//motor driver
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
pinMode(in3, OUTPUT);
pinMode(in4, OUTPUT);
pinMode(LED, OUTPUT); //Set the LED pin.
}
void loop()
{
if (Serial.available() > 0)
{
command = Serial.read();
Stop(); //Initialize with motors stoped.
switch (command) {
case 'F':
forward();
break;