12-24-2014, 07:29 AM
|
#841 (permalink)
|
EcoModding Apprentice
Join Date: Jan 2011
Location: Australia
Posts: 179
Thanks: 9
Thanked 16 Times in 13 Posts
|
Working through the code for the OBDuino, what if the A/F ratio is not 14.7? i.e. cars that are lean burn would in theory report incorrect readings, or during warm up the fuel report would be wrong...
Is there any reason NOT to use the ECU reported Injector Pulse Width? Why use MAF at all??
__________________
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
12-31-2014, 11:08 AM
|
#842 (permalink)
|
EcoModding Lurker
Join Date: Sep 2014
Location: Czech republik
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
Quote:
Originally Posted by yensen
Yes. This allowed mine to complete the init sequence using obduino code versions r198 or r203 with Arduino v1.0.5.
I never got much further than this. The screen would go to sleep seemingly randomly. I need to play with the config settings, but started to lose interest.
|
That's how it works You were right, it was enough to change serial.print serial.write. I did have a problem with the MC33290 because I'm just walked. thank you
|
|
|
02-13-2016, 01:30 PM
|
#843 (permalink)
|
EcoModding Lurker
Join Date: Feb 2016
Location: Montreal
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
I've been using the OBDuino32k.pde file. When I load on the IDE plateforme I receive the following errors. I thought replacing prog_char by const char would do the work but it didn't. Any body can help ?
Code:
OBDuino.ino:597: error: 'prog_char' does not name a type
prog_char PID_Desc[(1+LAST_PID)+(0xFF-FIRST_FAKE_PID)+1][9] PROGMEM=
OBDuino.ino:721: error: 'prog_char' does not name a type
const prog_char obd_std_strings[17][9] PROGMEM =
OBDuino.ino:732: error: 'prog_uchar' does not name a type
prog_uchar pid_reslen[] PROGMEM=
OBDuino.ino:757: error: 'prog_char' does not name a type
prog_char pctd[] PROGMEM="- %d + "; // used in a couple of place
OBDuino.ino:758: error: 'prog_char' does not name a type
prog_char pctdpctpct[] PROGMEM="- %d%% + "; // used in a couple of place
OBDuino.ino:759: error: 'prog_char' does not name a type
prog_char pctspcts[] PROGMEM="%s %s"; // used in a couple of place
OBDuino.ino:760: error: 'prog_char' does not name a type
prog_char pctldpcts[] PROGMEM="%ld %s"; // used in a couple of place
OBDuino.ino:761: error: 'prog_char' does not name a type
prog_char select_no[] PROGMEM="(NO) YES "; // for config menu
OBDuino.ino:762: error: 'prog_char' does not name a type
prog_char select_yes[] PROGMEM=" NO (YES)"; // for config menu
OBDuino.ino:763: error: 'prog_char' does not name a type
prog_char gasPrice[][10] PROGMEM={"- %s\354 + ", CurrencyAdjustString}; // dual string for fuel price
OBDuino.ino:764: error: 'prog_char' does not name a type
prog_char noDTCcodes[] PROGMEM="No DTC codes"; // for MIL
OBDuino.ino:768: error: 'prog_char' does not name a type
prog_char *topMenu[] PROGMEM = {"Configure menu", "Exit", "Display", "Adjust", "PIDs", "Clear DTC"};
OBDuino.ino:769: error: 'prog_char' does not name a type
prog_char *displayMenu[] PROGMEM = {"Display menu", "Exit", "Contrast", "Metric", "Fuel/Hour", "Font"};
OBDuino.ino:770: error: 'prog_char' does not name a type
prog_char *adjustMenu[] PROGMEM = {"Adjust menu", "Exit", "Tank Size", "Fuel Cost", "Fuel %", "Speed %", "Out Wait", "Trip Wait", "Tank Used", "Tank Dist", "Eng Disp", };
OBDuino.ino:771: error: 'prog_char' does not name a type
prog_char *PIDMenu[] PROGMEM = {"PID Screen menu", "Exit", "Scr 1", "Scr 2", "Scr 3", "Big 1", "Big 2"};
OBDuino.ino:786: error: 'prog_char' does not name a type
prog_char * tripNames[NBTRIP] PROGMEM =
OBDuino.ino:902: error: 'prog_char' does not name a type
prog_char *econ_Visual[] PROGMEM=
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'boolean get_pid(byte, char*, long int*)':
OBDuino.ino:1733: error: 'pid_reslen' was not declared in this scope
reslen=pgm_read_byte_near(pid_reslen+pid);
OBDuino.ino:1815: error: 'pctldpcts' was not declared in this scope
sprintf_P(retbuf, pctldpcts, *ret,
OBDuino.ino:2020: error: 'obd_std_strings' was not declared in this scope
strcpy_P(retbuf, obd_std_strings[buf[0]-1]);
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'unsigned int get_icons(char*)':
OBDuino.ino:2299: error: 'pctspcts' was not declared in this scope
sprintf_P(retbuf, pctspcts, decs,
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'unsigned int get_cons(char*, byte)':
OBDuino.ino:2392: error: 'pctspcts' was not declared in this scope
sprintf_P(retbuf, pctspcts, decs,
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_fuel(char*, byte)':
OBDuino.ino:2432: error: 'pctspcts' was not declared in this scope
sprintf_P(retbuf, pctspcts, decs,
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_waste(char*, byte)':
OBDuino.ino:2470: error: 'pctspcts' was not declared in this scope
sprintf_P(retbuf, pctspcts, decs,
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_dist(char*, byte)':
OBDuino.ino:2508: error: 'pctspcts' was not declared in this scope
sprintf_P(retbuf, pctspcts, decs,
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_remain_dist(char*)':
OBDuino.ino:2556: error: 'pctldpcts' was not declared in this scope
sprintf_P(retbuf, pctldpcts, remain_dist,
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void get_max_vss(char*, byte)':
OBDuino.ino:2586: error: 'pctldpcts' was not declared in this scope
sprintf_P(retbuf, pctldpcts, maxspeed,
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void display_mil_code_count(char*, long unsigned int*, byte*)':
OBDuino.ino:2986: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("CHECK ENGINE ON"));
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void check_mil_code(bool)':
OBDuino.ino:3060: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Error reading DTC"));
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3127: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Clear DTC?"));
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
OBDuino.ino:3139: error: 'noDTCcodes' was not declared in this scope
lcd_cls_print_P(noDTCcodes);
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void clear_mil_code()':
OBDuino.ino:3181: error: 'noDTCcodes' was not declared in this scope
lcd_cls_print_P(noDTCcodes);
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3188: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Clearing codes..."));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3199: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Codes cleared"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'byte menu_select_yes_no(byte)':
OBDuino.ino:3285: error: 'select_no' was not declared in this scope
lcd_print_P(select_no);
^
OBDuino.ino:3287: error: 'select_yes' was not declared in this scope
lcd_print_P(select_yes);
^
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void config_menu()':
OBDuino.ino:3423: error: 'topMenu' was not declared in this scope
selection = menu_selection(topMenu, ARRAY_SIZE(topMenu));
^
OBDuino.ino:3431: error: 'displayMenu' was not declared in this scope
displaySelection = menu_selection(displayMenu, ARRAY_SIZE(displayMenu));
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3435: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("LCD contrast"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
OBDuino.ino:3446: error: 'pctd' was not declared in this scope
sprintf_P(str, pctd, params.contrast);
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3458: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Use metric unit"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3470: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Use comma format"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3486: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Fuel/hour speed"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
OBDuino.ino:3495: error: 'pctd' was not declared in this scope
sprintf_P(str, pctd, params.per_hour_speed);
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3510: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Font type"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
OBDuino.ino:3519: error: 'pctd' was not declared in this scope
sprintf_P(str, pctd, params.BigFontType);
^
OBDuino.ino:3536: error: 'adjustMenu' was not declared in this scope
byte count = ARRAY_SIZE(adjustMenu);
^
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino:773:31: note: in definition of macro 'ARRAY_SIZE'
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3549: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Tank size ("));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3559: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("L)"));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3564: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("G)"));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3622: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Fuel Price ("));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3631: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("L)"));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3637: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("G)"));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
OBDuino.ino:3692: error: 'gasPrice' was not declared in this scope
sprintf_P(str, gasPrice[fuelUnits > 999], decs);
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3721: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Fuel adjust"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
OBDuino.ino:3731: error: 'pctdpctpct' was not declared in this scope
sprintf_P(str, pctdpctpct, params.fuel_adjust);
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3742: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Speed adjust"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
OBDuino.ino:3752: error: 'pctdpctpct' was not declared in this scope
sprintf_P(str, pctdpctpct, params.speed_adjust);
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3763: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Outing stop over"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3785: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Trip stop over"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3808: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Tank used ("));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3818: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("L)"));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3823: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("G)"));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3879: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Tank dist ("));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3890: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("KM)"));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3895: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("M)"));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:3951: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Eng dplcmt (MAP)"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
OBDuino.ino:3986: error: 'PIDMenu' was not declared in this scope
PIDSelection = menu_selection(PIDMenu, ARRAY_SIZE(PIDMenu));
^
OBDuino.ino:4012: error: 'PID_Desc' was not declared in this scope
strcpy_P(strpid, PID_Desc[remap_pid(pid)]);
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:4029: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Clear DTC?"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:4039: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("Saving config"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:4041: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("Please wait..."));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void trip_reset(byte, boolean)':
OBDuino.ino:4063: error: 'tripNames' was not declared in this scope
sprintf_P(str, PSTR("Zero %s data"), (char*)pgm_read_word(&(tripNames[ctrip])));
^
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void test_buttons()':
OBDuino.ino:4193: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR(" LCD backlight"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void display_PID_names()':
OBDuino.ino:4229: error: 'PID_Desc' was not declared in this scope
lcd_print_P(PID_Desc[remap_pid(params.screen[active_screen].PID[count++])]);
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void setup()':
OBDuino.ino:4314: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("OBDuino32k v198"));
^
OBDuino.ino:382: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string); // clear screen and display string
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:4320: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("ISO9141 Init"));
^
OBDuino.ino:381: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string); // to work with string in flash and PSTR()
^
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void lcd_char_init()':
OBDuino.ino:4821: error: 'prog_uchar' does not name a type
static prog_uchar chars[] PROGMEM ={
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:4834: error: 'chars' was not declared in this scope
lcd.write(pgm_read_byte(&chars[y*NB_CHAR+x])); //write the character data to the character generator ram
^
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void lcd_char_bignum()':
OBDuino.ino:4846: error: 'prog_uchar' does not name a type
static prog_uchar chars[BIGFontFontCount*BIGFontSymbolCount*8] PROGMEM = {
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:4880: error: 'chars' was not declared in this scope
lcd.write(pgm_read_byte(&chars[params.BigFontType*BIGFontSymbolCount*8 + y*BIGFontSymbolCount + x])); //write the character data to the character generator ram
^
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void bigNum(char*, char*)':
OBDuino.ino:4926: error: 'prog_char' does not name a type
static prog_char bignumchars1[40*BIGFontFontCount] PROGMEM = {
^
OBDuino.ino:4960: error: 'prog_char' does not name a type
static prog_char bignumchars2[40*BIGFontFontCount] PROGMEM = {
^
OBDuino.ino:5011: error: 'bignumchars1' was not declared in this scope
lcd_print_P(line==0?&bignumchars1[address]:&bignumchars2[address]);
^
OBDuino.ino:5011: error: 'bignumchars2' was not declared in this scope
lcd_print_P(line==0?&bignumchars1[address]:&bignumchars2[address]);
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void eco_visual(char*)':
OBDuino.ino:5148: error: 'econ_Visual' was not declared in this scope
sprintf_P(retbuf, PSTR("%s"), (char*)pgm_read_word(&(econ_Visual[stars])));
^
Desktop\Arduino Tutorial\OBD Arduino code\OBDuino\OBDuino.ino\OBDuino.ino.ino: In function 'void save_params_and_display()':
OBDuino.ino:5213: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_cls_print_P(PSTR("TRIPS SAVED!"));
^
OBDuino.ino:4803: error: initializing argument 1 of 'void lcd_cls_print_P(char*)' [-fpermissive]
void lcd_cls_print_P(char *string)
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from sketch\OBDuino.ino.ino.cpp:1:
OBDuino.ino:5218: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
lcd_print_P(PSTR("Wasted:"));
^
OBDuino.ino:4796: error: initializing argument 1 of 'void lcd_print_P(char*)' [-fpermissive]
void lcd_print_P(char *string)
^
exit status 1
'prog_char' does not name a type
|
|
|
02-14-2016, 01:32 AM
|
#844 (permalink)
|
EcoModding Lurker
Join Date: Feb 2016
Location: Montreal
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Anybody please?
I've re-read the whole thread but without any success.
Could it be related with the version of the IDE environment ? If so anybody have a clue where to get a hold of an older version ?
Best regards.
|
|
|
02-14-2016, 03:49 AM
|
#845 (permalink)
|
Not Doug
Join Date: Jun 2012
Location: Show Low, AZ
Posts: 12,232
Thanks: 7,254
Thanked 2,231 Times in 1,721 Posts
|
I apologize, I am not a very useful person, but I hope that someone is able to help you.
|
|
|
02-14-2016, 11:58 AM
|
#846 (permalink)
|
EcoModding Lurker
Join Date: Feb 2016
Location: Montreal
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
I hope so too
|
|
|
02-14-2016, 12:10 PM
|
#847 (permalink)
|
Master EcoModder
Join Date: Sep 2009
Posts: 5,927
Thanks: 877
Thanked 2,024 Times in 1,304 Posts
|
MAF (mass air flow) compensates for pressure, temperature, humidity, and density.
MAP(manifold absolute pressure) only measures the difference between the current atmospheric pressure and the pressure of the air entering the cylinder.
Nissan went to MAF in 1984 with the then new 300zx in the USA. Heated wire in the incoming air stream with the resistance created by air particles passing over the wire precisely measured.
regards
mech
|
|
|
02-14-2016, 12:16 PM
|
#848 (permalink)
|
Master EcoModder
Join Date: Sep 2009
Posts: 5,927
Thanks: 877
Thanked 2,024 Times in 1,304 Posts
|
Measuring only injector pulse width, in a system with a fuel pressure regulator that is typically vacuum controlled will not give you the required accuracy of the amount of fuel delivered.
In more modern systems, fuel pressure is regulated by controlling the voltage to the pump itself (Ford) but still receives input from the fuel pressure sensor, without vacuum control of the pressure used with earlier systems with a fuel return line from the pressure regulator back to the tank.
The Ford system had no return line.
regards
mech
|
|
|
02-14-2016, 01:02 PM
|
#849 (permalink)
|
MPGuino Supporter
Join Date: Oct 2010
Location: Hungary
Posts: 1,807
iNXS - '10 Opel Zafira 111 Anniversary Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
|
Quote:
Originally Posted by Old Mechanic
Measuring only injector pulse width, in a system with a fuel pressure regulator that is typically vacuum controlled will not give you the required accuracy of the amount of fuel delivered.
|
I would beg to differ. I have found MPGuino to be a lot more accurate than either the OBDII-based scanners (to include ScanGauge II) or the on-board factory trip computers I have used. MPGuino measures fuel injector pulse widths directly.
|
|
|
02-14-2016, 01:07 PM
|
#850 (permalink)
|
MPGuino Supporter
Join Date: Oct 2010
Location: Hungary
Posts: 1,807
iNXS - '10 Opel Zafira 111 Anniversary Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
|
Quote:
Originally Posted by crd4me
I've been using the OBDuino32k.pde file. When I load on the IDE plateforme I receive the following errors. I thought replacing prog_char by const char would do the work but it didn't. Any body can help ?
|
You have to go through the entire OBDuino code and replace each and every instance of "prog_char" with "const char". That is a total pain in the neck, but it has to be done.
Quote:
Originally Posted by crd4me
Code:
OBDuino.ino:721: error: 'prog_char' does not name a type
const prog_char obd_std_strings[17][9] PROGMEM =
|
For instance, this wasn't changed, and it failed when the compile attempt was made.
|
|
|
|