Cytat z cize data 20 grudnia 2020, 17:56Witam mam pewien problem. Od jakiegos czasu bawie sie xod i ucze sie go i stanołem w miejscu gdyz mam problem z zaladowaniem najprostrzego noda sterujacego silnikiem dc . problem wyglada tak mam arduino uno z scheld MH Electronics do sterowania sulnikami i serwo
Generating C++ code for simulation…
Building…
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1080:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t DIR_LATCH = 12;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1081:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t DIR_SER = 8;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1082:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t DIR_CLK = 4;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1083:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t DIR_EN = 7;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1085:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M1_PWM = 11; // PMW2A
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1086:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M1_A = 1 << 2;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1087:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M1_B = 1 << 3;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1089:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M2_PWM = 3; // PMW2B
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1090:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M2_A = 1 << 1;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1091:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M2_B = 1 << 4;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1093:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M3_PWM = 5; // PMW0B
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1094:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M3_A = 1 << 0;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1095:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M3_B = 1 << 6;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1097:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M4_PWM = 6; // PMW0A
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1098:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M4_A = 1 << 5;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1099:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M4_B = 1 << 7;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1136:33: error: use of undeclared identifier 'LOW'
digitalWrite(DIR_LATCH, LOW);
^
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1137:36: error: use of undeclared identifier 'MSBFIRST'
shiftOut(DIR_SER, DIR_CLK, MSBFIRST, dirByte);
^
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1138:33: error: use of undeclared identifier 'HIGH'
digitalWrite(DIR_LATCH, HIGH);
^
19 errors generated.
shared:ERROR: '/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/clang++ -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=39 -D__EMSCRIPTEN_tiny__=1 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/libcxx -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/lib/libcxxabi/include -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/compat -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/libc -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/local/include -DLLVM_ROOT=/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin -DARDUINO_WASM_SIMULATION -DARDUINO_ARCH_WASM -O2 -std=c++11 -nostdlib -fno-exceptions -fno-rtti -c -I/tmp/arduino-sketch-2F90C2DBE7BD0785F724167F7C0DA998/sketch -I/ws/arduino_data/packages/xod/hardware/wasm/0.3.2/cores/simulation -I/ws/arduino_data/packages/xod/hardware/wasm/0.3.2/variants/simulation -DEMSCRIPTEN /tmp/arduino-sketch-2F90C2DBE7BD0785F724167F7C0DA998/sketch/sketch.ino.cpp -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/SDL -c -o /tmp/arduino-sketch-2F90C2DBE7BD0785F724167F7C0DA998/preproc/ctags_target_for_gcc_minus_e.cpp -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr' failed (1)The generated C++ code contains errors. It can be due to a bad node implementation
or if your board is not compatible with XOD runtime code. The original compiler error
message is above. Fix C++ errors to continue. If you believe it is a bug, report the
problem to XOD developers.z gory dziekuje za pomoc
Witam mam pewien problem. Od jakiegos czasu bawie sie xod i ucze sie go i stanołem w miejscu gdyz mam problem z zaladowaniem najprostrzego noda sterujacego silnikiem dc . problem wyglada tak mam arduino uno z scheld MH Electronics do sterowania sulnikami i serwo
Generating C++ code for simulation…
Building…
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1080:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t DIR_LATCH = 12;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1081:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t DIR_SER = 8;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1082:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t DIR_CLK = 4;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1083:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t DIR_EN = 7;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1085:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M1_PWM = 11; // PMW2A
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1086:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M1_A = 1 << 2;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1087:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M1_B = 1 << 3;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1089:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M2_PWM = 3; // PMW2B
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1090:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M2_A = 1 << 1;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1091:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M2_B = 1 << 4;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1093:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M3_PWM = 5; // PMW0B
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1094:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M3_A = 1 << 0;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1095:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M3_B = 1 << 6;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1097:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M4_PWM = 6; // PMW0A
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1098:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M4_A = 1 << 5;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1099:5: error: non-static data member cannot be constexpr; did you intend to make it static?
constexpr uint8_t M4_B = 1 << 7;
^
static
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1136:33: error: use of undeclared identifier 'LOW'
digitalWrite(DIR_LATCH, LOW);
^
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1137:36: error: use of undeclared identifier 'MSBFIRST'
shiftOut(DIR_SER, DIR_CLK, MSBFIRST, dirByte);
^
/ws/sketchbook/77d89f0370e110448fdd2dad32391e4e58fbaebd0a86cda503b7f7fc4b6c707f/sketch/sketch.ino:1138:33: error: use of undeclared identifier 'HIGH'
digitalWrite(DIR_LATCH, HIGH);
^
19 errors generated.
shared:ERROR: '/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin/clang++ -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=39 -D__EMSCRIPTEN_tiny__=1 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/libcxx -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/lib/libcxxabi/include -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/compat -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/libc -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/local/include -DLLVM_ROOT=/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/bin -DARDUINO_WASM_SIMULATION -DARDUINO_ARCH_WASM -O2 -std=c++11 -nostdlib -fno-exceptions -fno-rtti -c -I/tmp/arduino-sketch-2F90C2DBE7BD0785F724167F7C0DA998/sketch -I/ws/arduino_data/packages/xod/hardware/wasm/0.3.2/cores/simulation -I/ws/arduino_data/packages/xod/hardware/wasm/0.3.2/variants/simulation -DEMSCRIPTEN /tmp/arduino-sketch-2F90C2DBE7BD0785F724167F7C0DA998/sketch/sketch.ino.cpp -Xclang -isystem/ws/arduino_data/packages/xod/tools/emscripten/1.39.2/emscripten/system/include/SDL -c -o /tmp/arduino-sketch-2F90C2DBE7BD0785F724167F7C0DA998/preproc/ctags_target_for_gcc_minus_e.cpp -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr' failed (1)
The generated C++ code contains errors. It can be due to a bad node implementation
or if your board is not compatible with XOD runtime code. The original compiler error
message is above. Fix C++ errors to continue. If you believe it is a bug, report the
problem to XOD developers.
z gory dziekuje za pomoc
Cytat z cize data 5 stycznia 2021, 15:28Nie wiem czy dobrze rozumuje ale poprawcie mnie prosze ,czy ten błąd moze dotyczyc tego ze ta plytka jest inna bo wiekszosc jak widziałem uzywa plytke DK electronic ale wizualnie wydaja sie takie same .
Poza tym czy problem moze dotyczyc wyjsc lub kompatybilnosci noda kmf (chyba bo nie pamietam dokladnej nazwy ) to nod sterujacy silnikami dc a widzialem na yt ze jeden pan wrzucil tego noda i silniki bez problemu dzialaly led mial plytke wlasnie dk electronic . jak by ktos mogl mi rozjasnic to moze to dotyczy niekompatybilnosci ?.jezeli chodzi o sama płytke arduino to z nia nie ma problemu jezeli chodzi o wrzucanie innych nodow . z gory dziekuje za pomoz i rozjasnienie tego.
Nie wiem czy dobrze rozumuje ale poprawcie mnie prosze ,czy ten błąd moze dotyczyc tego ze ta plytka jest inna bo wiekszosc jak widziałem uzywa plytke DK electronic ale wizualnie wydaja sie takie same .
Poza tym czy problem moze dotyczyc wyjsc lub kompatybilnosci noda kmf (chyba bo nie pamietam dokladnej nazwy ) to nod sterujacy silnikami dc a widzialem na yt ze jeden pan wrzucil tego noda i silniki bez problemu dzialaly led mial plytke wlasnie dk electronic . jak by ktos mogl mi rozjasnic to moze to dotyczy niekompatybilnosci ?.jezeli chodzi o sama płytke arduino to z nia nie ma problemu jezeli chodzi o wrzucanie innych nodow . z gory dziekuje za pomoz i rozjasnienie tego.
Cytat z Tomasz data 10 stycznia 2021, 10:13Jak bys jeszcze screen patcha dał i schemat połączeń 😉
Jak bys jeszcze screen patcha dał i schemat połączeń 😉