﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
226	ropp_pp_openloop wrong handling of negative time values for finding internal navbits	kmk		"ropp_pp_openloop line 350:

TGI(:) = INT(time(:)/GPSFL)

The time variable is negative for the first few (about 30) time steps and then becomes positive. The above line does not handle the change fronm negative to positive correctly. As an example. If time/GPSFL goes: 

....  -2.5, -1.5, -0.5, 0.5, 1.5, 2.5 ....

TGI goes:

....  -2,  -1,  0,  0,  1,  2  ....

(note the two zeroes)

In this case TGI should rightly increment by 1 for every step.


This could either be handled directly or indirectly by adding a positive constant to time (the latter is essentially what happens in OCC). 




  "	defect	new	normal		ropp_pp	4.1			kmk@…
