[obdgpslogger] Changing default columns doesn't change OBDSIM

Gary Briggs chunky at icculus.org
Wed Jul 14 17:44:35 EDT 2010


On Wed, Jul 14, 2010 at 04:22:00PM -0400, Robert Konigsberg wrote:
> BTW I have updated the GUI, and I'm sure I updated it appropriately, to show
> more columns. I just need to get that data from somewhere, and now that
> somewhere is probably just my car. I'll have to test it later tonight.

This diff should make cycle report values for PIDs up to 0x59 [although it will
probably return NO DATA for the top few, since I haven't filled the info
on those PIDs yet]

Gary

Index: src/sim/generators/cycle/gen_cycle.c
===================================================================
--- src/sim/generators/cycle/gen_cycle.c        (revision 488)
+++ src/sim/generators/cycle/gen_cycle.c        (working copy)
@@ -95,15 +95,15 @@

        struct cycle_gen *g = (struct cycle_gen *)gen;

-       if(0x00 == PID) {
+       if(0x00 == PID || 0x20 == PID || 0x40 == PID) {
                *A = 0xFF;
                *B = 0xFF;
                *C = 0xFF;
-               *D = 0xFE;
+               *D = 0x40==PID?0xFE:0xFF;
                return 4;
        }

-       if(0x20 <= PID) return 0;
+       if(0x60 <= PID) return 0;

        struct timeval newtime;
        gettimeofday(&newtime, NULL);



More information about the obdgpslogger mailing list