Go Back   EcoModder Forum > EcoModding > Instrumentation > OpenGauge / MPGuino FE computer
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 05-01-2011, 01:36 PM   #1 (permalink)
EcoModding Lurker
 
Join Date: May 2011
Location: Greece
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
OBDuino32k build issues

Hello guys,
i found your site and loved this project. I have bought an elm compatible board and would like to have some fun with my Arduino UNO.

I am using Arduino version 0022 enviroment and i am trying to copy paste the code to a new sketch from this site

opengauge.googlecode.com/svn/trunk/obduino32K/obduino32K.pde

Selecting the Board to Arduino UNO and then Verify/Compile.

all i get are the following errors:

Code:
obduino:363: error: 'byte' does not name a type
obduino:364: error: 'byte' does not name a type
obduino:365: error: 'byte' has not been declared
obduino:368: error: 'byte' has not been declared
obduino:397: error: 'byte' does not name a type
obduino:405: error: 'byte' does not name a type
obduino:413: error: 'byte' does not name a type
obduino:723: error: 'byte' does not name a type
obduino:788: error: 'byte' does not name a type
obduino:796: error: 'byte' does not name a type
obduino:797: error: 'byte' does not name a type
obduino:798: error: 'boolean' does not name a type
obduino:799: error: 'byte' does not name a type
obduino:800: error: 'byte' does not name a type
obduino:801: error: 'byte' does not name a type
obduino:802: error: 'byte' does not name a type
obduino:805: error: 'byte' does not name a type
obduino:806: error: 'byte' does not name a type
obduino:810: error: 'byte' does not name a type
obduino:811: error: 'byte' does not name a type
obduino:868: error: too many initializers for 'screen_t'
obduino:868: error: too many initializers for 'screen_t'
obduino:868: error: too many initializers for 'screen_t'
obduino:868: error: too many initializers for 'params_t'
obduino:904: error: 'byte' does not name a type
obduino:919: error: 'byte' does not name a type
obduino:928: error: 'byte' does not name a type
obduino:932: error: 'byte' does not name a type
obduino:935: error: 'byte' does not name a type
obduino:936: error: 'byte' does not name a type
obduino:983: error: 'boolean' does not name a type
obduino:1014: error: expected constructor, destructor, or type conversion before '(' token
obduino:1034: error: 'byte' does not name a type
obduino.cpp: In function 'void elm_write(char*)':
obduino:1059: error: 'Serial' was not declared in this scope
obduino.cpp: At global scope:
obduino:1063: error: 'byte' does not name a type
obduino:1076: error: 'byte' does not name a type
obduino:1093: error: 'byte' does not name a type
obduino.cpp: In function 'void elm_init()':
obduino:1104: error: 'Serial' was not declared in this scope
obduino:1109: error: 'elm_command' was not declared in this scope
obduino:1124: error: 'delay' was not declared in this scope
obduino:1126: error: 'elm_check_response' was not declared in this scope
obduino.cpp: At global scope:
obduino:1622: error: 'byte' does not name a type
obduino:1629: error: 'boolean' does not name a type
obduino:1662: error: 'boolean' does not name a type
obduino:2033: error: 'byte' has not been declared
obduino.cpp: In function 'void long_to_dec_str(long int, char*, int)':
obduino:2035: error: 'byte' was not declared in this scope
obduino:2035: error: expected `;' before 'pos'
obduino:2040: error: 'pos' was not declared in this scope
obduino:2042: error: expected `;' before 'i'
obduino:2042: error: 'i' was not declared in this scope
obduino:2049: error: 'struct params_t' has no member named 'use_metric'
obduino:2049: error: 'struct params_t' has no member named 'use_comma'
obduino.cpp: At global scope:
obduino:2164: error: 'byte' does not name a type
obduino.cpp: In function 'void clear_icons_tvss()':
obduino:2168: error: 'byte' was not declared in this scope
obduino:2168: error: expected `;' before 'i'
obduino:2168: error: 'i' was not declared in this scope
obduino:2169: error: 'tvss' was not declared in this scope
obduino.cpp: In function 'void clear_icons_tmaf()':
obduino:2173: error: 'byte' was not declared in this scope
obduino:2173: error: expected `;' before 'i'
obduino:2173: error: 'i' was not declared in this scope
obduino.cpp: In function 'unsigned int get_icons(char*)':
obduino:2181: error: 'byte' was not declared in this scope
obduino:2181: error: expected `;' before 'nb_entry'
obduino:2184: error: 'struct params_t' has no member named 'per_hour_speed'
obduino:2187: error: 'struct params_t' has no member named 'use_metric'
obduino:2197: error: expected `;' before 'i'
obduino:2197: error: 'i' was not declared in this scope
obduino:2199: error: 'tvss' was not declared in this scope
obduino:2202: error: 'nb_entry' was not declared in this scope
obduino:2205: error: 'nb_entry' was not declared in this scope
obduino:2207: error: 'struct params_t' has no member named 'fuel_adjust'
obduino:2223: error: 'boolean' was not declared in this scope
obduino:2223: error: expected `;' before 'lowSpeed'
obduino:2227: error: 'lowSpeed' was not declared in this scope
obduino:2230: error: 'struct params_t' has no member named 'speed_adjust'
obduino:2243: error: 'struct params_t' has no member named 'use_metric'
obduino:2245: error: 'lowSpeed' was not declared in this scope
obduino:2271: error: 'struct params_t' has no member named 'use_metric'
obduino:2274: error: 'struct params_t' has no member named 'use_metric'
obduino:2274: error: 'lowSpeed' was not declared in this scope
obduino.cpp: At global scope:
obduino:2291: error: 'byte' has not been declared
obduino.cpp: In function 'unsigned int get_cons(char*, int)':
obduino:2307: error: 'struct params_t' has no member named 'use_metric'
obduino:2328: error: 'struct params_t' has no member named 'use_metric'
obduino:2357: error: 'struct params_t' has no member named 'use_metric'
obduino:2367: error: 'struct params_t' has no member named 'use_metric'
obduino.cpp: At global scope:
obduino:2384: error: 'byte' has not been declared
obduino.cpp: In function 'void get_fuel(char*, int)':
obduino:2394: error: 'struct params_t' has no member named 'use_metric'
obduino:2407: error: 'struct params_t' has no member named 'use_metric'
obduino.cpp: At global scope:
obduino:2422: error: 'byte' has not been declared
obduino.cpp: In function 'void get_waste(char*, int)':
obduino:2432: error: 'struct params_t' has no member named 'use_metric'
obduino:2445: error: 'struct params_t' has no member named 'use_metric'
obduino.cpp: At global scope:
obduino:2460: error: 'byte' has not been declared
obduino.cpp: In function 'void get_dist(char*, int)':
obduino:2470: error: 'struct params_t' has no member named 'use_metric'
obduino:2483: error: 'struct params_t' has no member named 'use_metric'
obduino.cpp: In function 'void get_remain_dist(char*)':
obduino:2518: error: 'struct params_t' has no member named 'use_metric'
obduino:2531: error: 'struct params_t' has no member named 'use_metric'
obduino.cpp: At global scope:
obduino:2544: error: 'byte' has not been declared
obduino.cpp: In function 'void get_max_vss(char*, int)':
obduino:2549: error: 'struct params_t' has no member named 'use_metric'
obduino:2561: error: 'struct params_t' has no member named 'use_metric'
obduino.cpp: In function 'void accu_trip()':
obduino:2578: error: 'byte' does not name a type
obduino:2579: error: 'byte' does not name a type
obduino:2580: error: 'byte' was not declared in this scope
obduino:2580: error: expected `;' before 'throttle_pos'
obduino:2581: error: expected `;' before 'open_load'
obduino:2588: error: 'PIDCacheCount' was not declared in this scope
obduino:2595: error: 'millis' was not declared in this scope
obduino:2603: error: 'get_pid' was not declared in this scope
obduino:2612: error: expected `;' before 'i'
obduino:2612: error: 'i' was not declared in this scope
obduino:2623: error: 'has_rpm' was not declared in this scope
obduino:2638: error: 'get_pid' was not declared in this scope
obduino:2640: error: 'throttle_pos' was not declared in this scope
obduino:2640: error: expected `;' before 'tempLong'
obduino:2642: error: 'min_throttle_pos' was not declared in this scope
obduino:2651: error: 'get_pid' was not declared in this scope
obduino:2653: error: 'open_load' was not declared in this scope
obduino:2660: error: 'throttle_pos' was not declared in this scope
obduino:2660: error: 'min_throttle_pos' was not declared in this scope
obduino:2660: error: 'open_load' was not declared in this scope
obduino:2668: error: 'is_pid_supported' was not declared in this scope
obduino:2671: error: 'get_pid' was not declared in this scope
obduino:2692: error: 'get_pid' was not declared in this scope
obduino:2694: error: 'get_pid' was not declared in this scope
obduino:2696: error: 'get_pid' was not declared in this scope
obduino:2708: error: 'struct params_t' has no member named 'eng_dis'
obduino:2725: error: 'struct params_t' has no member named 'fuel_adjust'
obduino:2726: error: expected `;' before 'i'
obduino:2726: error: 'i' was not declared in this scope
obduino:2743: error: 'tvss' was not declared in this scope
obduino:2743: error: 'tindex' was not declared in this scope
obduino.cpp: At global scope:
obduino:2756: error: 'byte' has not been declared
obduino.cpp: In function 'void get_pid_internal(char*, int)':
obduino:2768: error: 'get_trip_time' was not declared in this scope
obduino:2770: error: 'get_trip_time' was not declared in this scope
obduino:2772: error: 'get_trip_time' was not declared in this scope
obduino:2774: error: 'get_trip_time' was not declared in this scope
obduino:2776: error: 'get_trip_time' was not declared in this scope
obduino:2778: error: 'get_trip_time' was not declared in this scope
obduino:2786: error: 'get_engine_on_time' was not declared in this scope
obduino:2809: error: 'elm_command' was not declared in this scope
obduino:2811: error: 'elm_command' was not declared in this scope
obduino:2834: error: 'nbpid_per_second' was not declared in this scope
obduino:2840: error: 'eco_visual' was not declared in this scope
obduino:2843: error: 'get_pid' was not declared in this scope
obduino.cpp: At global scope:
obduino:2846: error: variable or field 'display' declared void
obduino:2846: error: 'byte' was not declared in this scope
obduino:2846: error: 'byte' was not declared in this scope

any ideas what am i doing wrong? Should i use an older version of Arduino Environment?

Hope you can help me,

regards,
Kostas

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 05-03-2011, 04:37 AM   #2 (permalink)
EcoModding Lurker
 
Join Date: May 2011
Location: Greece
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
hello again,
i feel like im the only one here with this problem... possible the solution is in front of my eyes.. hope someone has an idea
  Reply With Quote
Old 05-03-2011, 02:39 PM   #3 (permalink)
EcoModding Lurker
 
Join Date: May 2011
Location: Holland
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

I ran into the same errors. I managed to compile by using a slightly older version.

Downloaded with the link below;
Code:
ht tp://opengauge.googlecode.com/svn-history/r192/trunk/obduino32K/obduino32K.pde
  Reply With Quote
Old 05-03-2011, 03:16 PM   #4 (permalink)
EcoModding Lurker
 
Join Date: May 2011
Location: Greece
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
thank you very much, i managed to build r192 .. but i dont feel its normal to have build errors with latest rev.. still in the search to find what we are doing wrong :-)

at least i have somewhere to start..
  Reply With Quote
Old 05-03-2011, 03:18 PM   #5 (permalink)
EcoModding Lurker
 
Join Date: May 2011
Location: Holland
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I agree... im also looking into it. Good luck...
  Reply With Quote
Old 05-03-2011, 03:26 PM   #6 (permalink)
EcoModding Lurker
 
Join Date: May 2011
Location: Holland
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
It looks like the errors are being introduced when including FileLogger.h...
  Reply With Quote
Old 05-03-2011, 04:23 PM   #7 (permalink)
EcoModding Lurker
 
Join Date: May 2011
Location: Holland
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
FYI;

The error is being caused by the following line:

Code:
Row 326:   static char logString[logBufferSize] = {0};

Last edited by leeuwte; 05-03-2011 at 04:29 PM..
  Reply With Quote
Old 05-05-2011, 09:50 AM   #8 (permalink)
EcoModding Lurker
 
Join Date: May 2011
Location: Greece
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Hello again,
i finally build it using Arduino 0022, i had to remove comments from the #define useSDCard line after i had installed this library...

"arduino-filelogger.googlecode.com/files/FileLogger.V0.6.zip"

This is for logging to SD card that is added in the latest revision, i dont need this feature right now so i will try to make some changes to remove this dependency.

Thanks!
  Reply With Quote
Old 05-05-2011, 09:56 AM   #9 (permalink)
EcoModding Lurker
 
Join Date: May 2011
Location: Holland
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you for the solution...

The code doesn't fully fit my needs (and whishes) so i'm going to write my own version.

The code is also very 'spagetti' like. Lot of functionality in one file. It's hard to understand the code or find something. So my version will be splitted in serveral block (LCD / SD / GPS / ELM / etc. etc.);

  Reply With Quote
Reply  Post New Thread


Thread Tools




Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com