Opened 14 years ago

Last modified 13 years ago

#226 closed defect

ropp_pp_openloop wrong handling of negative time values for finding internal navbits — at Initial version

Reported by: kmk Owned by:
Priority: normal Milestone: 5.1
Component: ropp_pp Version: 4.1
Keywords: Cc: kmk@…

Description

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).

Change history (0)

Note: See TracTickets for help on using tickets.