Telematics General

Arduino OBD kit #3 not compiling

userHead Sigmon 2014-04-19 16:45:49 6684 Views3 Replies
I am receiving the following errors. Please help

In file included from megalogger.ino:16:
config.h:39: error: 'LCD_ILI9325D' does not name a type
megalogger:51: error: 'TinyGPS' does not name a type
megalogger:66: error: expected class-name before ',' token
megalogger.ino: In member function 'void COBDLogger::setup()':
megalogger:76: error: 'MPU6050_init' was not declared in this scope
megalogger:91: error: could not convert 'init()' to 'bool'
megalogger:91: error: in argument to unary !
megalogger:115: error: 'lcd' was not declared in this scope
megalogger:123: error: 'PID_DISTANCE' was not declared in this scope
megalogger:123: error: 'read' was not declared in this scope
megalogger.ino: In member function 'void COBDLogger::loop()':
megalogger:136: error: 'PID_RPM' was not declared in this scope
megalogger:137: error: 'PID_SPEED' was not declared in this scope
megalogger:138: error: 'PID_THROTTLE' was not declared in this scope
megalogger:144: error: 'PID_DISTANCE' was not declared in this scope
megalogger:148: error: 'PID_COOLANT_TEMP' was not declared in this scope
megalogger:152: error: 'PID_INTAKE_TEMP' was not declared in this scope
megalogger:156: error: 'PID_AMBIENT_TEMP' was not declared in this scope
megalogger:156: error: 'isValidPID' was not declared in this scope
megalogger:162: error: 'PID_BAROMETRIC' was not declared in this scope
megalogger:162: error: 'isValidPID' was not declared in this scope
megalogger:169: error: 'PID_ENGINE_LOAD' was not declared in this scope
megalogger:172: error: 'PID_INTAKE_MAP' was not declared in this scope
megalogger:172: error: 'isValidPID' was not declared in this scope
megalogger:175: error: 'PID_MAF_FLOW' was not declared in this scope
megalogger:185: error: 'lcd' was not declared in this scope
megalogger:185: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger:196: error: 'errors' was not declared in this scope
megalogger:202: error: 'gps' was not declared in this scope
megalogger.ino: In member function 'bool COBDLogger::checkSD()':
megalogger:217: error: 'lcd' was not declared in this scope
megalogger:219: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger.ino: In member function 'void COBDLogger::dataIdleLoop()':
megalogger:270: error: 'getState' was not declared in this scope
megalogger:270: error: 'OBD_CONNECTED' was not declared in this scope
megalogger:289: error: 'lcd' was not declared in this scope
megalogger:289: error: 'FONT_SIZE_SMALL' was not declared in this scope
megalogger:296: error: 'gps' was not declared in this scope
megalogger.ino: In member function 'void COBDLogger::processGPS()':
megalogger:322: error: 'gps' was not declared in this scope
megalogger:332: error: 'gps' was not declared in this scope
megalogger:353: error: 'lcd' was not declared in this scope
megalogger:353: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger.ino: In member function 'void COBDLogger::processAccelerometer()':
megalogger:383: error: 'accel_t_gyro_union' was not declared in this scope
megalogger:383: error: expected `;' before 'data'
megalogger:384: error: 'data' was not declared in this scope
megalogger:384: error: 'MPU6050_readout' was not declared in this scope
megalogger:386: error: 'lcd' was not declared in this scope
megalogger:386: error: 'FONT_SIZE_SMALL' was not declared in this scope
megalogger.ino: In member function 'void COBDLogger::logOBDData(byte)':
megalogger:417: error: 'OBD_RECV_BUF_SIZE' was not declared in this scope
megalogger:422: error: 'read' was not declared in this scope
megalogger:438: error: 'lcd' was not declared in this scope
megalogger:438: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger:441: error: 'FONT_SIZE_SMALL' was not declared in this scope
megalogger.ino: In member function 'void COBDLogger::showECUCap()':
megalogger:456: error: 'PID_RPM' was not declared in this scope
megalogger:456: error: 'PID_SPEED' was not declared in this scope
megalogger:456: error: 'PID_THROTTLE' was not declared in this scope
megalogger:456: error: 'PID_ENGINE_LOAD' was not declared in this scope
megalogger:456: error: 'PID_MAF_FLOW' was not declared in this scope
megalogger:456: error: 'PID_INTAKE_MAP' was not declared in this scope
megalogger:456: error: 'PID_FUEL_LEVEL' was not declared in this scope
megalogger:456: error: 'PID_FUEL_PRESSURE' was not declared in this scope
megalogger:456: error: 'PID_COOLANT_TEMP' was not declared in this scope
megalogger:456: error: 'PID_INTAKE_TEMP' was not declared in this scope
megalogger:456: error: 'PID_AMBIENT_TEMP' was not declared in this scope
megalogger:456: error: 'PID_TIMING_ADVANCE' was not declared in this scope
megalogger:456: error: 'PID_BAROMETRIC' was not declared in this scope
megalogger:459: error: 'lcd' was not declared in this scope
megalogger:459: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger:465: error: 'isValidPID' was not declared in this scope
megalogger:466: error: 'RGB16_GREEN' was not declared in this scope
megalogger:466: error: 'RGB16_RED' was not declared in this scope
megalogger:469: error: 'RGB16_WHITE' was not declared in this scope
megalogger.ino: In member function 'void COBDLogger::reconnect()':
megalogger:476: error: 'lcd' was not declared in this scope
megalogger:477: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger:481: error: could not convert 'init()' to 'bool'
megalogger:481: error: in argument to unary !
megalogger.ino: In member function 'void COBDLogger::showStates()':
megalogger:492: error: 'lcd' was not declared in this scope
megalogger:492: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger:496: error: 'RGB16_GREEN' was not declared in this scope
megalogger:496: error: 'RGB16_RED' was not declared in this scope
megalogger:498: error: 'RGB16_WHITE' was not declared in this scope
megalogger.ino: In member function 'void COBDLogger::showSensorData(byte, int)':
megalogger:523: error: 'PID_RPM' was not declared in this scope
megalogger:524: error: 'lcd' was not declared in this scope
megalogger:524: error: 'FONT_SIZE_XLARGE' was not declared in this scope
megalogger:528: error: 'PID_SPEED' was not declared in this scope
megalogger:536: error: 'PID_THROTTLE' was not declared in this scope
megalogger:537: error: 'FONT_SIZE_SMALL' was not declared in this scope
megalogger:541: error: 'PID_INTAKE_TEMP' was not declared in this scope
megalogger:546: error: 'PID_DISTANCE' was not declared in this scope
megalogger:548: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger.ino: In member function 'void COBDLogger::initScreen()':
megalogger:558: error: 'lcd' was not declared in this scope
megalogger:565: error: 'FONT_SIZE_SMALL' was not declared in this scope
megalogger:594: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger.ino: In function 'void setup()':
megalogger:633: error: 'lcd' was not declared in this scope
megalogger:634: error: 'FONT_SIZE_MEDIUM' was not declared in this scope
megalogger:638: error: 'RGB16_WHITE' was not declared in this scope
megalogger:654: error: 'class COBDLogger' has no member named 'begin'
2014-04-24 03:50:19 Sigmon,

Can you explain what you did to rectify your issue?

Cheers.
userHeadPic Auzzook
2014-04-19 18:32:22 I got the files to work now. userHeadPic Sigmon
2014-04-19 17:37:50 I am using the current library files from Github and the current megalogger files and am now receiving these errors  Please help me get this working. Thanks in advance.

In file included from megalogger.ino:1:
config.h:13: error: stray '\302' in program
config.h:13: error: stray '\267' in program
config.h:248: error: stray '@' in program
config.h:680: error: stray '#' in program
config.h:680: error: stray '#' in program
In file included from megalogger.ino:2:
datalogger.h:13: error: stray '\302' in program
datalogger.h:13: error: stray '\267' in program
datalogger.h:248: error: stray '@' in program
In file included from megalogger.ino:2:
C:\Users\Chris Sigmon\Documents\Arduino\libraries\megalogger/datalogger.h:479:46: error: invalid suffix "aa084765dd7ec3ed7c7d61fb180e7" on integer constant
datalogger.h:1022: error: stray '#' in program
datalogger.h:1022: error: stray '#' in program
In file included from megalogger.ino:3:
images.h:13: error: stray '\302' in program
images.h:13: error: stray '\267' in program
images.h:248: error: stray '@' in program
In file included from megalogger.ino:3:
C:\Users\Chris Sigmon\Documents\Arduino\libraries\megalogger/images.h:479:46: error: invalid suffix "a3a1ca61580b7a9f8423470f958" on floating constant
images.h:561: error: stray '\342' in program
images.h:561: error: stray '\200' in program
images.h:561: error: stray '\246' in program
megalogger:17: error: stray '\' in program
megalogger:252: error: stray '@' in program
megalogger.ino:483:46: error: invalid suffix "c71548a920c5130d51f18bd1" on floating constant
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
megalogger:1287: error: stray '#' in program
In file included from megalogger.ino:1:
config.h:6: error: expected unqualified-id before '<' token
config.h:723: error: expected unqualified-id before numeric constant
In file included from megalogger.ino:2:
datalogger.h:1022: error: expected unqualified-id before '<' token
datalogger.h:1022: error: expected unqualified-id before '<' token
datalogger.h:1022: error: expected unqualified-id before '<' token
datalogger.h:1022: error: expected unqualified-id before '<' token
datalogger.h:1022: error: expected unqualified-id before '<' token
datalogger.h:1022: error: expected unqualified-id before '<' token
datalogger.h:1022: error: expected unqualified-id before '<' token
datalogger.h:1022: error: expected unqualified-id before '<' token
userHeadPic Sigmon