Hello good morning, I introduce myself, I am new and I do not have much or no idea about programming. My intention is to use a program already made for the computerization of a dome of an astronomical observatory. It gives me an error and I don't know how to act. Excuse my great ignorance.
I copy the error line that shows me in the arduino programmer when verifying and setting the programming code apart.
Thanks in advance!!!
I attach the document because the code is extensive
ERROR:
Arduino:1.8.13 (Windows 10), Tarjeta:"Arduino Uno"
In file included from C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:5:0:
C:\Users\domin\OneDrive\Documentos\Arduino\libraries\SerialCommands\src/SerialCommands.h:42:80: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
SerialCommands(Stream* serial, char* buffer, int16_t buffer_len, char* term = "\r\n", char* delim = " ") :
^~~~~~
C:\Users\domin\OneDrive\Documentos\Arduino\libraries\SerialCommands\src/SerialCommands.h:42:102: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
SerialCommands(Stream* serial, char* buffer, int16_t buffer_len, char* term = "\r\n", char* delim = " ") :
^~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:101:1: warning: declaration does not declare anything [-fpermissive]
SerialCommands ;
^~~~~~~~~~~~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void cmdAbort(uint8_t*)':
sketch_aug05a:246:21: error: 'START' was not declared in this scope
uint8_t resp[] = {START, 2, TO_COMPUTER | ABORT_CMD, 0x00};
^~~~~
sketch_aug05a:247:3: error: 'sCmd' was not declared in this scope
sCmd.sendResponse(resp, 4);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:247:3: note: suggested alternative: 'cmd'
sCmd.sendResponse(resp, 4);
^~~~
cmd
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void cmdHomeAzimuth(uint8_t*)':
sketch_aug05a:257:21: error: 'START' was not declared in this scope
uint8_t resp[] = {START, 3, TO_COMPUTER | HOME_CMD, 0x01, 0x00};
^~~~~
sketch_aug05a:258:3: error: 'sCmd' was not declared in this scope
sCmd.sendResponse(resp, 5);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:258:3: note: suggested alternative: 'cmd'
sCmd.sendResponse(resp, 5);
^~~~
cmd
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void cmdGotoAzimuth(uint8_t*)':
sketch_aug05a:269:21: error: 'START' was not declared in this scope
uint8_t resp[] = {START, 3, TO_COMPUTER | GOTO_CMD, 0x01, 0x00};
^~~~~
sketch_aug05a:270:3: error: 'sCmd' was not declared in this scope
sCmd.sendResponse(resp, 5);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:270:3: note: suggested alternative: 'cmd'
sCmd.sendResponse(resp, 5);
^~~~
cmd
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void cmdShutterCommand(uint8_t*)':
sketch_aug05a:305:21: error: 'START' was not declared in this scope
uint8_t resp[] = {START, 2, TO_COMPUTER | SHUTTER_CMD, 0x00};
^~~~~
sketch_aug05a:306:3: error: 'sCmd' was not declared in this scope
sCmd.sendResponse(resp, 4);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:306:3: note: suggested alternative: 'cmd'
sCmd.sendResponse(resp, 4);
^~~~
cmd
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void cmdStatus(uint8_t*)':
sketch_aug05a:324:21: error: 'START' was not declared in this scope
uint8_t resp[] = {START, 9, TO_COMPUTER | STATUS_CMD, sh_status, az_status,
^~~~~
sketch_aug05a:331:3: error: 'sCmd' was not declared in this scope
sCmd.sendResponse(resp, 11);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:331:3: note: suggested alternative: 'cmd'
sCmd.sendResponse(resp, 11);
^~~~
cmd
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void cmdSetPark(uint8_t*)':
sketch_aug05a:342:21: error: 'START' was not declared in this scope
uint8_t resp[] = {START, 2, TO_COMPUTER | SETPARK_CMD, 0x00};
^~~~~
sketch_aug05a:343:3: error: 'sCmd' was not declared in this scope
sCmd.sendResponse(resp, 4);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:343:3: note: suggested alternative: 'cmd'
sCmd.sendResponse(resp, 4);
^~~~
cmd
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void cmdSetTicks(uint8_t*)':
sketch_aug05a:351:21: error: 'START' was not declared in this scope
uint8_t resp[] = {START, 2, TO_COMPUTER | TICKS_CMD, 0x00};
^~~~~
sketch_aug05a:352:3: error: 'sCmd' was not declared in this scope
sCmd.sendResponse(resp, 4);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:352:3: note: suggested alternative: 'cmd'
sCmd.sendResponse(resp, 4);
^~~~
cmd
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void cmdVBat(uint8_t*)':
sketch_aug05a:357:21: error: 'START' was not declared in this scope
uint8_t resp[] = {START, 4, TO_COMPUTER | VBAT_CMD, 0x00, 0x00, 0x00};
^~~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:360:29: warning: expression list treated as compound expression in initializer [-fpermissive]
int ToBytes(vbat, resp + 3);
^
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:360:29: warning: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
sketch_aug05a:362:3: error: 'sCmd' was not declared in this scope
sCmd.sendResponse(resp, 6);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:362:3: note: suggested alternative: 'cmd'
sCmd.sendResponse(resp, 6);
^~~~
cmd
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void cmdAck(uint8_t*)':
sketch_aug05a:367:21: error: 'START' was not declared in this scope
uint8_t resp[] = {START, 3, TO_COMPUTER | ACK_CMD, 0x03, 0x00};
^~~~~
sketch_aug05a:370:3: error: 'sCmd' was not declared in this scope
sCmd.sendResponse(resp, 5);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino:370:3: note: suggested alternative: 'cmd'
sCmd.sendResponse(resp, 5);
^~~~
cmd
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void setup()':
sketch_aug05a:478:3: error: 'sCmd' was not declared in this scope
sCmd.addCommand(ABORT_CMD, 2, cmdAbort);
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: In function 'void loop()':
sketch_aug05a:508:3: error: 'sCmd' was not declared in this scope
sCmd.readSerial();
^~~~
C:\Users\domin\OneDrive\Documentos\Arduino\programa\sketch_aug05a\sketch_aug05a.ino: At global scope:
sketch_aug05a:512:1: error: expected declaration before '}' token
}
^
Se encontraron varias bibliotecas para "SerialCommands.h"
Usado: C:\Users\domin\OneDrive\Documentos\Arduino\libraries\SerialCommands
No usado: C:\Users\domin\OneDrive\Documentos\Arduino\libraries\SerialCommands_ID1976
exit status 1
'START' was not declared in this scope
sketch_aug05a.ino (12 KB)