Processing ile Kontrol

ESPcopter CommunityCategory: QuestionsProcessing ile Kontrol
Alp asked 1 month ago

Merhaba iyi günler,
ESPcopter’i Processing üzerinden kontrol etmek istiyorum fakat SDK üzerinde bir bilgi bulamadım. https://espcopter.com/category/iot-and-espcopter-with-processing-3/
linkindeki örnek kodları çalıştırmayı denedim. Tek başına Processing kodunu çalıştırınca sadece karşıma joystick benzeri bir şey geldi. Arduino kodunu çalıştırmak gerekiyor herhalde diyip onu Arduino’ya yükleyince de önce include’un yanında FILENAME yok hatası aldım. Oraya <espcopter.h> yazınca da aşağıdaki hatayı aldım:
 
In file included from C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/espcopter.h:44:0,
from C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino:1:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/setup.h: In function ‘void mainSetup()’:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/setup.h:221:13: error: ‘setupWiFi’ was not declared in this scope
setupWiFi();
^
In file included from C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/espcopter.h:45:0,
from C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino:1:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/loop.h: In function ‘void mainLoop()’:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/loop.h:5:9: error: ‘getRX’ was not declared in this scope
getRX();
^
C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino: At global scope:
Espcopter:10:5: error: redefinition of ‘int red’
int red = 0, green = 0, blue = 0;
^
In file included from C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/espcopter.h:1:0,
from C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino:1:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/global.h:20:5: error: ‘int red’ previously defined here
int red = 0, green = 0, blue = 0;
^
Espcopter:10:14: error: redefinition of ‘int green’
int red = 0, green = 0, blue = 0;
^
In file included from C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/espcopter.h:1:0,
from C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino:1:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/global.h:20:14: error: ‘int green’ previously defined here
int red = 0, green = 0, blue = 0;
^
Espcopter:10:25: error: redefinition of ‘int blue’
int red = 0, green = 0, blue = 0;
^
In file included from C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/espcopter.h:1:0,
from C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino:1:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/global.h:20:25: error: ‘int blue’ previously defined here
int red = 0, green = 0, blue = 0;
^
Espcopter:11:13: error: redefinition of ‘int pinPWM [4]’
int pinPWM[4] = {14, 15, 12, 13}; //Define PWM pin
^
In file included from C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/espcopter.h:1:0,
from C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino:1:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/global.h:19:5: error: ‘int pinPWM [4]’ previously defined here
int pinPWM[4] = {14, 15, 12, 13};
^
Espcopter:12:5: error: conflicting declaration ‘int throttle’
int throttle = 0;
^
In file included from C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/espcopter.h:1:0,
from C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino:1:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/global.h:128:7: error: ‘throttle’ has a previous declaration as ‘float throttle’
float throttle = 0;
^
Espcopter:14:8: error: redefinition of ‘String inString’
String inString = “”;
^
In file included from C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/espcopter.h:1:0,
from C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino:1:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/global.h:202:8: error: ‘String inString’ previously declared here
String inString = “”; // string to hold input
^
Espcopter:15:5: error: redefinition of ‘int currentColor’
int currentColor = 0;
^
In file included from C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/espcopter.h:1:0,
from C:\Users\alpbe\AppData\Local\Temp\arduino_modified_sketch_556697\Espcopter.ino:1:
C:\Users\alpbe\Documents\Arduino\libraries\espcopter\src/global.h:204:5: error: ‘int currentColor’ previously defined here
int currentColor = 0;
^
exit status 1
redefinition of ‘int red’
 
#define PROCESSING_REMOTE’u eklediğimde de aynı hatayı alıyorum. Sizce sorun nedir, Processing ile nasıl kontrol edebilirim ESPcopter’i? Bilgisayar ile kontrol etmek istiyorum ESPcopter’i.
 
Şimdiden çok teşekkür ederim, kolay gelsin.

1 Answers
metehanemlik Staff answered 1 month ago

Merhaba,
mevcut yazılıma henüz processing arayüz kontrolü entegre edilmedi. Güncellemer ile entegre edilecektir. Bir kaç hafta bir hatılatırsanız işlemleri hızlandırabiliriz.