As with all files, rename the file, adding a preceding l (the letter after k and before m)
| line# | action |
| 1 | replace #include "includes.h" with #include "lincludes.h" |
| 50 | replace void SaveAlmanacs(void) with void SaveAlmanacs(int arg) |
| 53/td> | remove char buff[500]; |
| 92 | insert almstrucl la; |
| 92 | insert ephstrucl le; |
| 93 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 100 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 115 | remove sprintf(buff,"F13%-2d%-1d%-3d%-4d%-6lu%9.7f%+9.6f%+15.12f" "%9.4f%+10.7f%+10.7f%+10.7f%+10.7f%+15.12f", sv+1,almdata[sv].vflg,almdata[sv].almhlth,almdata[sv].refweek, atoa,aecc,ainclin,arora,asqrta,aratoa,aargpg,amanom,aaf0,aaf1); PROTECT++; tx_buff_space = TransmitBufferSpace(PC_MONITOR_CHANNEL); while(tx_buff_space<120) tx_buff_space = TransmitBufferSpace(PC_MONITOR_CHANNEL); SendString(buff); PROTECT--; |
| 126 | remove DownLoadIntCtr = 0UL; while(DownLoadIntCtr<396UL) /* Wait for 0.2s for the PC Monitor. */ {}; |
| 128 | insert la.vflg = almdata[sv].vflg; la.almhlth = almdata[sv].almhlth; la.refweek = almdata[sv].refweek; la.toa = atoa; la.ecc = aecc; la.inclin = ainclin; la.rora = arora; la.sqrta = asqrta; la.ratoa = aratoa; la.argpg = aargpg; la.manom = amanom; la.af0 = aaf0; la.af1 = aaf1; rtf_put(6,&la,sizeof(la)); |
| 157 | remove sprintf(buff,"F14%-2d%-1d%-6lu%-3d%-1d%-4d%-1d%-2d%-4d%+13.10lf" "%-4d%-6lu%+13.10lf%+16.13lf%+20.17lf%-3d%+8.2lf" "%+16.13lf%+13.10lf%+12.9lf%12.10lf%+12.9lf%11.6lf" "%-4d%-6lu%-1d%+12.9lf%+13.10lf%+12.9lf%+13.10lf" "%+8.2lf%+13.10lf%+16.13lf%+16.13lf", sv+1,ephdata[sv].vflg,0UL, ephdata[sv].s1hlth,ephdata[sv].codeL2, ephdata[sv].wkn,ephdata[sv].L2Pdata,ephdata[sv].ura, ephdata[sv].iodc,etgd,ephdata[sv].tocwk, etoc,eaf0,eaf1,eaf2,ephdata[sv].iode,ecrs, edeltan,em0,ecuc,eecc,ecus,esqrta, ephdata[sv].toewk,etoe,ephdata[sv].fti, ecic,eom0,ecis,ein0,ecrc,eolc,eomd,eidot); PROTECT++; tx_buff_space = TransmitBufferSpace(PC_MONITOR_CHANNEL); while(tx_buff_space<382) tx_buff_space = TransmitBufferSpace(PC_MONITOR_CHANNEL); SendString(buff); PROTECT--; |
| 170 | replace PROTECT++; with rec_mutex_unlock ((int)arg); |
| 177 | remove DownLoadIntCtr = 0UL; while(DownLoadIntCtr<222UL) /* Wait for 0.2s for the PC Monitor. */ {}; |
| 179 | insert le.vflg = ephdata[sv].vflg; le.TofXmission = 0UL; le.s1hlth = ephdata[sv].s1hlth; le.codeL2 = ephdata[sv].codeL2; le.wkn = ephdata[sv].wkn; le.L2Pdata = ephdata[sv].L2Pdata; le.ura = ephdata[sv].ura; le.iodc = ephdata[sv].iodc; le.tgd = etgd; le.tocwk = ephdata[sv].tocwk; le.toc = etoc; le.af0 = eaf0; le.af1 = eaf1; le.af2 = eaf2; le.iode = ephdata[sv].iode; le.crs = ecrs; le.deltan = edeltan; le.m0 = em0; le.cuc = ecuc; le.ecc = eecc; le.cus = ecus; le.sqrta = esqrta; le.toewk = ephdata[sv].toewk; le.toe = etoe; le.fti = ephdata[sv].fti; le.cic = ecic; le.om0 = eom0; le.cis = ecis; le.in0 = ein0; le.crc = ecrc; le.olc = eolc; le.omd = eomd; le.idot = eidot; le.a = 0.0; le.n0 = 0.0; rtf_put(6,&le,sizeof(le)); |
| 184 | replace
sprintf(buff,"F15%-1d%+13.10lf%+12.9lf%+11.8lf%+11.8lf%-7.0lf%-8.0lf" "%-9.0lf%-9.0lf" "%+13.10lf%+19.16lf%-7lu%-+4d%-3u%-3u%-3d%-+4d", ionoutcdata.vflg,ionoutcdata.a0,ionoutcdata.a1, ionoutcdata.a2,ionoutcdata.a3,ionoutcdata.b0, ionoutcdata.b1,ionoutcdata.b2,ionoutcdata.b3, ionoutcdata.A0,ionoutcdata.A1,ionoutcdata.tot, ionoutcdata.dtls,ionoutcdata.wnt,ionoutcdata.wnlsf, ionoutcdata.dn,ionoutcdata.dtlsf); PROTECT++; tx_buff_space = TransmitBufferSpace(PC_MONITOR_CHANNEL); while(tx_buff_space<144) tx_buff_space = TransmitBufferSpace(PC_MONITOR_CHANNEL); SendString(buff); PROTECT--; |
| 201 | remove DownLoadIntCtr = 0UL; |
| 205 | remove
while(DownLoadIntCtr |
| 206 | insert rtf_put(6,&ionoutcdata,sizeof(ionoutcdata)); |
| 226 | replace void ValidateEphemeris(int satellite) with void ValidateEphemeris(int satellite, int arg) |
| 239 | replace GPSTime(&g); with GPSTime(&g, (int)arg); |
| 243 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 257 | ?replace ExtrapolationUpdate(satellite,ALMANAC); with ExtrapolationUpdate(satellite,ALMANAC,(int)arg); |
| 273 | replace ExtrapolationUpdate(satellite,ALMANAC); with ExtrapolationUpdate(satellite,ALMANAC,(int)arg); |
| 291 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |
| 311 | replace void ValidateAlmanac(int satellite) with void ValidateAlmanac(int satellite, int arg) |
| 325 | replace GPSTime(&g); with GPSTime(&g, (int)arg); |
| 329 | replace PROTECT++; with rec_mutex_lock ((int)arg); |
| 341 | replace PROTECT--; with rec_mutex_unlock ((int)arg); |