Re: [Firebug-cvs] firebug/project/src/gps TestMTS350M.nc,1.3,1.4
Brought to you by:
doolin
From: David D. <do...@ce...> - 2003-07-15 17:15:04
|
All that j++ stuff still really bugs me, I just can't figure out why the pointer isn't offset initially and the char arrays indexed appropriately. But I am not going to fiddle with it if it works. dave d On Tue, 15 Jul 2003 cs...@us... wrote: > Update of /cvsroot/firebug/firebug/project/src/gps > In directory sc8-pr-cvs1:/tmp/cvs-serv29481 > > Modified Files: > TestMTS350M.nc > Log Message: > corrected index errors in logGPS > > Index: TestMTS350M.nc > =================================================================== > RCS file: /cvsroot/firebug/firebug/project/src/gps/TestMTS350M.nc,v > retrieving revision 1.3 > retrieving revision 1.4 > diff -C2 -d -r1.3 -r1.4 > *** TestMTS350M.nc 11 Jul 2003 16:19:20 -0000 1.3 > --- TestMTS350M.nc 15 Jul 2003 16:57:35 -0000 1.4 > *************** > *** 368,378 **** > pGGA->Lat_deg = 10*(write[2][0]-'0') + (write[2][1]-'0'); > log_array[4] = pGGA->Lat_deg; > ! pGGA->Lat_dec_min = 100000*(write[2][4]-'0') + 10000*(write[2][5]-'0') + 1000*(write[2][7]-'0') + 100*(write[2][8]-'0') + 10*(write[2][9]-'0') + (write[2][10]-'0'); > log_array[5] = (pGGA->Lat_dec_min)>>8; > log_array[6] = pGGA->Lat_dec_min; > > ! pGGA->Long_deg = 10*(write[4][0]-'0') + (write[4][1]-'0'); > log_array[7] = pGGA->Long_deg; > ! pGGA->Long_dec_min = 100000*(write[4][4]-'0') + 10000*(write[4][5]-'0') + 1000*(write[4][7]-'0') + 100*(write[4][8]-'0') + 10*(write[4][9]-'0') + (write[4][10]-'0'); > log_array[8] = (pGGA->Long_dec_min)>>8; > log_array[9] = pGGA->Long_dec_min; > --- 368,378 ---- > pGGA->Lat_deg = 10*(write[2][0]-'0') + (write[2][1]-'0'); > log_array[4] = pGGA->Lat_deg; > ! pGGA->Lat_dec_min = 100000*(write[2][2]-'0') + 10000*(write[2][3]-'0') + 1000*(write[2][4]-'0') + 100*(write[2][5]-'0') + 10*(write[2][6]-'0') + (write[2][7]-'0'); > log_array[5] = (pGGA->Lat_dec_min)>>8; > log_array[6] = pGGA->Lat_dec_min; > > ! pGGA->Long_deg = 100*(write[4][0]-'0') + 10*(write[4][1]-'0') + (write[4][2]-'0'); > log_array[7] = pGGA->Long_deg; > ! pGGA->Long_dec_min = 100000*(write[4][3]-'0') + 10000*(write[4][4]-'0') + 1000*(write[4][5]-'0') + 100*(write[4][6]-'0') + 10*(write[4][7]-'0') + (write[4][8]-'0'); > log_array[8] = (pGGA->Long_dec_min)>>8; > log_array[9] = pGGA->Long_dec_min; > *************** > *** 384,394 **** > > //***DEBUG: Output GGA data before write*** > ! //for(j=0; j<11; j++) UARTPutChar(log_array[j]); > ! //SODbg(DBG_USR2, "\n"); > //***************************************** > > ! if(call GpsCmd.GpsPower(0)) { > ! SODbg(DBG_USR2, "GPS Power Off\n"); > ! } > > if(call LoggerWrite.write(0x19,(char *)log_array)){ > --- 384,394 ---- > > //***DEBUG: Output GGA data before write*** > ! for(j=0; j<11; j++) UARTPutChar(log_array[j]); > ! SODbg(DBG_USR2, "\n"); > //***************************************** > > ! //if(call GpsCmd.GpsPower(0)) { > ! // SODbg(DBG_USR2, "GPS Power Off\n"); > ! //} > > if(call LoggerWrite.write(0x19,(char *)log_array)){ > *************** > *** 402,412 **** > > //***DEBUG: Read and Output Stored GGA data*** > ! //char line[32]; > ! //uint8_t i; > ! //if (call LoggerRead.read(0x19,line)) { > ! // for(i=16; i<32; i++) UARTPutChar(line[i]); > ! //} > ! //SODbg(DBG_USR2, "\n"); > ! //SODbg(DBG_USR2, "\n"); > //********************************************* > > --- 402,412 ---- > > //***DEBUG: Read and Output Stored GGA data*** > ! char line[32]; > ! uint8_t i; > ! if (call LoggerRead.read(0x19,line)) { > ! for(i=16; i<32; i++) UARTPutChar(line[i]); > ! } > ! SODbg(DBG_USR2, "\n"); > ! SODbg(DBG_USR2, "\n"); > //********************************************* > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps1 > _______________________________________________ > Firebug-cvs mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebug-cvs > |