War ungeduldig:
Arduino: 1.8.13 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 115200, None"
C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void setup()':
Rc_Engine_Sound_ESP32:1111:41: error: 'pulseNeutral' was not declared in this scope
pulseMaxNeutral = pulseZero + pulseNeutral;
^
Rc_Engine_Sound_ESP32:1113:34: error: 'pulseSpan' was not declared in this scope
pulseMax = pulseZero + pulseSpan;
^
C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void readPpmCommands()':
Rc_Engine_Sound_ESP32:1179:29: error: 'STEERING' was not declared in this scope
pulseWidthRaw[1] = ppmBuf[STEERING - 1]; // CH1 steering
^
Rc_Engine_Sound_ESP32:1180:29: error: 'GEARBOX' was not declared in this scope
pulseWidthRaw[2] = ppmBuf[GEARBOX - 1]; // CH2 3 position switch for gearbox (left throttle in tracked mode)
^
Rc_Engine_Sound_ESP32:1181:29: error: 'THROTTLE' was not declared in this scope
pulseWidthRaw[3] = ppmBuf[THROTTLE - 1]; // CH3 throttle & brake
^
Rc_Engine_Sound_ESP32:1182:29: error: 'HORN' was not declared in this scope
pulseWidthRaw[4] = ppmBuf[HORN - 1]; // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1183:29: error: 'FUNCTION_R' was not declared in this scope
pulseWidthRaw[5] = ppmBuf[FUNCTION_R - 1]; // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1184:29: error: 'FUNCTION_L' was not declared in this scope
pulseWidthRaw[6] = ppmBuf[FUNCTION_L - 1]; // CH6 indicators, hazards
^
Rc_Engine_Sound_ESP32:1185:29: error: 'POT2' was not declared in this scope
pulseWidthRaw[7] = ppmBuf[POT2 - 1]; // CH7 pot 2
^
Rc_Engine_Sound_ESP32:1186:29: error: 'MODE1' was not declared in this scope
pulseWidthRaw[8] = ppmBuf[MODE1 - 1]; // CH8 mode 1 switch
^
C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void readSbusCommands()':
Rc_Engine_Sound_ESP32:1216:39: error: 'STEERING' was not declared in this scope
pulseWidthRaw[1] = map(SBUSchannels[STEERING - 1], 172, 1811, 1000, 2000); // CH1 steering
^
Rc_Engine_Sound_ESP32:1217:39: error: 'GEARBOX' was not declared in this scope
pulseWidthRaw[2] = map(SBUSchannels[GEARBOX - 1], 172, 1811, 1000, 2000); // CH2 3 position switch for gearbox (left throttle in tracked mode)
^
Rc_Engine_Sound_ESP32:1218:39: error: 'THROTTLE' was not declared in this scope
pulseWidthRaw[3] = map(SBUSchannels[THROTTLE - 1], 172, 1811, 1000, 2000); // CH3 throttle & brake
^
Rc_Engine_Sound_ESP32:1219:39: error: 'HORN' was not declared in this scope
pulseWidthRaw[4] = map(SBUSchannels[HORN - 1], 172, 1811, 1000, 2000); // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1220:39: error: 'FUNCTION_R' was not declared in this scope
pulseWidthRaw[5] = map(SBUSchannels[FUNCTION_R - 1], 172, 1811, 1000, 2000); // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1221:39: error: 'FUNCTION_L' was not declared in this scope
pulseWidthRaw[6] = map(SBUSchannels[FUNCTION_L - 1], 172, 1811, 1000, 2000); // CH6 indicators, hazards
^
Rc_Engine_Sound_ESP32:1222:39: error: 'POT2' was not declared in this scope
pulseWidthRaw[7] = map(SBUSchannels[POT2 - 1], 172, 1811, 1000, 2000); // CH7 pot 2
^
Rc_Engine_Sound_ESP32:1223:39: error: 'MODE1' was not declared in this scope
pulseWidthRaw[8] = map(SBUSchannels[MODE1 - 1], 172, 1811, 1000, 2000); // CH8 mode 1 switch
^
Rc_Engine_Sound_ESP32:1224:39: error: 'MODE2' was not declared in this scope
pulseWidthRaw[9] = map(SBUSchannels[MODE2 - 1], 172, 1811, 1000, 2000); // CH9 mode 2 switch
^
Rc_Engine_Sound_ESP32:1225:40: error: 'MOMENTARY1' was not declared in this scope
pulseWidthRaw[10] = map(SBUSchannels[MOMENTARY1 - 1], 172, 1811, 1000, 2000); // CH10
^
Rc_Engine_Sound_ESP32:1226:40: error: 'HAZARDS' was not declared in this scope
pulseWidthRaw[11] = map(SBUSchannels[HAZARDS - 1], 172, 1811, 1000, 2000); // CH11
^
Rc_Engine_Sound_ESP32:1227:40: error: 'INDICATOR_LEFT' was not declared in this scope
pulseWidthRaw[12] = map(SBUSchannels[INDICATOR_LEFT - 1], 172, 1811, 1000, 2000); // CH12
^
Rc_Engine_Sound_ESP32:1228:40: error: 'INDICATOR_RIGHT' was not declared in this scope
pulseWidthRaw[13] = map(SBUSchannels[INDICATOR_RIGHT - 1], 172, 1811, 1000, 2000); // CH13
^
C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void readIbusCommands()':
Rc_Engine_Sound_ESP32:1278:39: error: 'STEERING' was not declared in this scope
pulseWidthRaw[1] = iBus.readChannel(STEERING - 1); // CH1 steering
^
Rc_Engine_Sound_ESP32:1279:39: error: 'GEARBOX' was not declared in this scope
pulseWidthRaw[2] = iBus.readChannel(GEARBOX - 1); // CH2 3 position switch for gearbox (left throttle in tracked mode)
^
Rc_Engine_Sound_ESP32:1280:39: error: 'THROTTLE' was not declared in this scope
pulseWidthRaw[3] = iBus.readChannel(THROTTLE - 1); // CH3 throttle & brake
^
Rc_Engine_Sound_ESP32:1281:39: error: 'HORN' was not declared in this scope
pulseWidthRaw[4] = iBus.readChannel(HORN - 1); // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1282:39: error: 'FUNCTION_R' was not declared in this scope
pulseWidthRaw[5] = iBus.readChannel(FUNCTION_R - 1); // CH5 jake brake, high / low beam, headlight flasher, engine on / off
^
Rc_Engine_Sound_ESP32:1283:39: error: 'FUNCTION_L' was not declared in this scope
pulseWidthRaw[6] = iBus.readChannel(FUNCTION_L - 1); // CH6 indicators, hazards
^
Rc_Engine_Sound_ESP32:1284:39: error: 'POT2' was not declared in this scope
pulseWidthRaw[7] = iBus.readChannel(POT2 - 1); // CH7 pot 2
^
Rc_Engine_Sound_ESP32:1285:39: error: 'MODE1' was not declared in this scope
pulseWidthRaw[8] = iBus.readChannel(MODE1 - 1); // CH8 mode 1 switch
^
Rc_Engine_Sound_ESP32:1286:39: error: 'MODE2' was not declared in this scope
pulseWidthRaw[9] = iBus.readChannel(MODE2 - 1); // CH9 mode 2 switch
^
Rc_Engine_Sound_ESP32:1287:40: error: 'MOMENTARY1' was not declared in this scope
pulseWidthRaw[10] = iBus.readChannel(MOMENTARY1 - 1); // CH10
^
Rc_Engine_Sound_ESP32:1288:40: error: 'HAZARDS' was not declared in this scope
pulseWidthRaw[11] = iBus.readChannel(HAZARDS - 1); // CH11
^
Rc_Engine_Sound_ESP32:1289:40: error: 'INDICATOR_LEFT' was not declared in this scope
pulseWidthRaw[12] = iBus.readChannel(INDICATOR_LEFT - 1); // CH12
^
Rc_Engine_Sound_ESP32:1290:40: error: 'INDICATOR_RIGHT' was not declared in this scope
pulseWidthRaw[13] = iBus.readChannel(INDICATOR_RIGHT - 1); // CH13
^
C:\Users\xxx\Documents\Arduino Dateien\Sketchbook\Rc_Engine_Sound_ESP32\Rc_Engine_Sound_ESP32.ino: In function 'void processRawChannels()':
Rc_Engine_Sound_ESP32:1317:11: error: 'channelAutoZero' was not declared in this scope
if (channelAutoZero && !autoZeroDone && (pulseWidthRaw > 1600 || pulseWidthRaw < 1400)) {
^
Rc_Engine_Sound_ESP32:1329:11: error: 'channelReversed' was not declared in this scope
if (channelReversed) pulseWidth = map(pulseWidthRaw, 0, 3000, 3000, 0); // Reversed
^
Rc_Engine_Sound_ESP32:1333:11: error: 'channelAutoZero' was not declared in this scope
if (channelAutoZero && !autoZeroDone && pulseWidth > pulseMinValid && pulseWidth < pulseMaxValid) pulseOffset = 1500 - pulseWidth;
^
exit status 1
'pulseNeutral' was not declared in this scope