Welcome to MattzoBricks › Forums › MattzoTrainController for Power Functions (MTC4PF) › PF Controller programmieren
- This topic has 1 reply, 2 voices, and was last updated 1 year, 11 months ago by Matthias Runte.
-
AuthorPosts
-
-
May 2, 2022 at 19:26 #5305Robert NitschkeParticipant
Hallo
habe folgendes Problem ich bekomme die daten nicht hochgeladen auf den Controller.
Hier die Fehlermeldung:
Arduino: 1.8.18 (Windows 10), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200”Stromlinienlok:35:1: error: ‘MattzoLocoConfiguration’ does not name a type
35 | MattzoLocoConfiguration* getMattzoLocoConfiguration() {
| ^~~~~~~~~~~~~~~~~~~~~~~
Stromlinienlok:77:1: error: ‘MattzoMotorShieldConfiguration’ does not name a type
77 | MattzoMotorShieldConfiguration* getMattzoMotorShieldConfiguration() {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MTC4PF:624:6: error: variable or field ‘lightEvent’ declared void
624 | void lightEvent(LightEventType le, int locoIndex) {
| ^~~~~~~~~~
MTC4PF:624:17: error: ‘LightEventType’ was not declared in this scope
624 | void lightEvent(LightEventType le, int locoIndex) {
| ^~~~~~~~~~~~~~
MTC4PF:624:36: error: expected primary-expression before ‘int’
624 | void lightEvent(LightEventType le, int locoIndex) {
| ^~~
Stromlinienlok:35:1: error: ‘MattzoLocoConfiguration’ does not name a type
35 | MattzoLocoConfiguration* getMattzoLocoConfiguration() {
| ^~~~~~~~~~~~~~~~~~~~~~~
Stromlinienlok:77:1: error: ‘MattzoMotorShieldConfiguration’ does not name a type
77 | MattzoMotorShieldConfiguration* getMattzoMotorShieldConfiguration() {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stromlinienlok:101:7: error: ‘MotorShieldType’ does not name a type
101 | const MotorShieldType MOTORSHIELD_TYPE = MotorShieldType::L9110;
| ^~~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:26:11: error: redefinition of ‘const int NUM_LOCOS’
26 | const int NUM_LOCOS = 1;
| ^~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:26:11: note: ‘const int NUM_LOCOS’ previously defined here
26 | const int NUM_LOCOS = 1;
| ^~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:66:11: error: redefinition of ‘const int NUM_MOTORSHIELDS’
66 | const int NUM_MOTORSHIELDS = 1;
| ^~~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:66:11: note: ‘const int NUM_MOTORSHIELDS’ previously defined here
66 | const int NUM_MOTORSHIELDS = 1;
| ^~~~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:122:11: error: redefinition of ‘const int NUM_FUNCTIONS’
122 | const int NUM_FUNCTIONS = 2;
| ^~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:122:11: note: ‘const int NUM_FUNCTIONS’ previously defined here
122 | const int NUM_FUNCTIONS = 2;
| ^~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:126:9: error: redefinition of ‘uint8_t FUNCTION_PIN [2]’
126 | uint8_t FUNCTION_PIN[NUM_FUNCTIONS] = { D0, D2 };
| ^~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:126:9: note: ‘uint8_t FUNCTION_PIN [2]’ previously defined here
126 | uint8_t FUNCTION_PIN[NUM_FUNCTIONS] = {
| ^~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:130:5: error: redefinition of ‘int FUNCTION_PIN_LOCO_ADDRESS [2]’
130 | int FUNCTION_PIN_LOCO_ADDRESS[NUM_FUNCTIONS] = { 0, 0 };
| ^~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:148:5: note: ‘int FUNCTION_PIN_LOCO_ADDRESS [2]’ previously defined here
148 | int FUNCTION_PIN_LOCO_ADDRESS[NUM_FUNCTIONS] = { 0, 0 };
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:134:5: error: redefinition of ‘int FUNCTION_PWM_VALUE [2]’
134 | int FUNCTION_PWM_VALUE[NUM_FUNCTIONS] = { 1023, 1023 };
| ^~~~~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:141:5: note: ‘int FUNCTION_PWM_VALUE [2]’ previously defined here
141 | int FUNCTION_PWM_VALUE[NUM_FUNCTIONS] = {
| ^~~~~~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:138:12: error: redefinition of ‘const bool AUTO_LIGHTS’
138 | const bool AUTO_LIGHTS = true;
| ^~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:152:12: note: ‘const bool AUTO_LIGHTS’ previously defined here
152 | const bool AUTO_LIGHTS = true;
| ^~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:141:6: error: redefinition of ‘bool STATUS_LED_PIN_INSTALLED’
141 | bool STATUS_LED_PIN_INSTALLED = true; // set to false if no LED is installed
| ^~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:155:6: note: ‘bool STATUS_LED_PIN_INSTALLED’ previously defined here
155 | bool STATUS_LED_PIN_INSTALLED = true; // set to false if no LED is installed
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:142:9: error: redefinition of ‘uint8_t STATUS_LED_PIN’
142 | uint8_t STATUS_LED_PIN = D8;
| ^~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:156:9: note: ‘uint8_t STATUS_LED_PIN’ previously defined here
156 | uint8_t STATUS_LED_PIN = D8;
| ^~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:143:6: error: redefinition of ‘bool STATUS_LED_REVERSE’
143 | bool STATUS_LED_REVERSE = false;
| ^~~~~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:157:6: note: ‘bool STATUS_LED_REVERSE’ previously defined here
157 | bool STATUS_LED_REVERSE = false;
| ^~~~~~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:146:12: error: redefinition of ‘const bool REPORT_BATTERYLEVEL’
146 | const bool REPORT_BATTERYLEVEL = false; // set to true or false to allow or omit battery level reports
| ^~~~~~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:160:12: note: ‘const bool REPORT_BATTERYLEVEL’ previously defined here
160 | const bool REPORT_BATTERYLEVEL = false; // set to true or false to allow or omit battery level reports
| ^~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:147:11: error: redefinition of ‘const int SEND_BATTERYLEVEL_INTERVAL’
147 | const int SEND_BATTERYLEVEL_INTERVAL = 60000; // interval for sending battery level in milliseconds
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:161:11: note: ‘const int SEND_BATTERYLEVEL_INTERVAL’ previously defined here
161 | const int SEND_BATTERYLEVEL_INTERVAL = 60000; // interval for sending battery level in milliseconds
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:148:11: error: redefinition of ‘const int BATTERY_PIN’
148 | const int BATTERY_PIN = A0;
| ^~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:162:11: note: ‘const int BATTERY_PIN’ previously defined here
162 | const int BATTERY_PIN = A0;
| ^~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:149:11: error: redefinition of ‘const int VOLTAGE_MULTIPLIER’
149 | const int VOLTAGE_MULTIPLIER = 20000 / 5000 – 1; // Rbottom = 5 kOhm; Rtop = 20 kOhm; => voltage split factor
| ^~~~~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:163:11: note: ‘const int VOLTAGE_MULTIPLIER’ previously defined here
163 | const int VOLTAGE_MULTIPLIER = 20000 / 5000 – 1; // Rbottom = 5 kOhm; Rtop = 20 kOhm; => voltage split factor
| ^~~~~~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:150:11: error: redefinition of ‘const int MAX_AI_VOLTAGE’
150 | const int MAX_AI_VOLTAGE = 5100; // maximum analog input voltage on pin A0. Usually 5000 = 5V = 5000mV. Can be slightly adapted to correct small deviations
| ^~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:164:11: note: ‘const int MAX_AI_VOLTAGE’ previously defined here
164 | const int MAX_AI_VOLTAGE = 5100; // maximum analog input voltage on pin A0. Usually 5000 = 5V = 5000mV. Can be slightly adapted to correct small deviations
| ^~~~~~~~~~~~~~
In file included from C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino:63:
MTC4PF_Configuration.h:166:13: error: redefinition of ‘const char* SYSLOG_APP_NAME’
166 | const char* SYSLOG_APP_NAME = “MTC4PF”;
| ^~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\Stromlinienlok.ino:180:13: note: ‘const char* SYSLOG_APP_NAME’ previously defined here
180 | const char* SYSLOG_APP_NAME = “MTC4PF-SLL1”;
| ^~~~~~~~~~~~~~~
C:\Users\Sanji\Documents\Arduino\Stromlinienlok\MTC4PF.ino: In function ‘void setTrainSpeed(int, int)’:
MTC4PF:570:5: error: ‘lightEvent’ was not declared in this scope
570 | lightEvent(LightEventType::STOP, locoIndex);
| ^~~~~~~~~~
MTC4PF:573:5: error: ‘lightEvent’ was not declared in this scope
573 | lightEvent(LightEventType::FORWARD, locoIndex);
| ^~~~~~~~~~
MTC4PF:576:5: error: ‘lightEvent’ was not declared in this scope
576 | lightEvent(LightEventType::REVERSE, locoIndex);
| ^~~~~~~~~~
Mehrere Bibliotheken wurden für “ArduinoOTA.h” gefunden
Benutzt: C:\Users\Sanji\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ArduinoOTA
Nicht benutzt: C:\Users\Sanji\Documents\Arduino\libraries\ArduinoOTA
exit status 1
‘MattzoLocoConfiguration’ does not name a type
Dieser Bericht wäre detaillierter, wenn die Option
“Ausführliche Ausgabe während der Kompilierung”
in Datei -> Voreinstellungen aktiviert wäre.Was mache ich Falsch?
-
May 2, 2022 at 22:15 #5307Matthias RunteKeymaster
Hmm… kannst Du mal Deine controller_config.h hochladen oder mir irgendwie zukommen lassen?
-
-
AuthorPosts
- You must be logged in to reply to this topic.