View Single Post
Old 05-01-2011, 01:36 PM   #1 (permalink)
kostakis
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