Hi,
Like mentioned before, I will inform the forum of the results I achived on their instructions and help.
Out of 1407 waypoint, I had to check every second the aproch to one of them, so I will be warned.
So, I used binaire search to make a array-gap from 8 points (on advise of the forum, This takes max. 200 mSec for 1400 points), then I had only 8 waypoints to check. When my position is out of range of my 8 waypoints, I create a new array-gap arround my position (this wil only happen from time to time).
This works enormesly robust by the binair search, with only very little overhead to secure things. That all.
Some times here:
Fetch from GPS of a GPRMC sentens: 40 mSec.
Valid fetch and all the work that has be done: max. 200 mSec.
With array-gap and the whole bunch: max. 400 mSec.
This all while I do plot the whole route, with all data possible...
So, there is time to do some Map displacement I think ;-)
I have to remark that I use only easy things from B4PPC, like tables, labels and buttons, non sofisticated things or trics (beginners mode)...
Have to mention also, that the behavior tables do surprise me, the SORT do change only indexes, and the SAVE csv do not always work, I had to save under a different name as it was loaded...
Can we use a variable to a string to use as a Filename?
Has the forum some idee what I have to do if I want go up to 14000 waypoint to search on?
Put Claude Belgium
Like mentioned before, I will inform the forum of the results I achived on their instructions and help.
Out of 1407 waypoint, I had to check every second the aproch to one of them, so I will be warned.
So, I used binaire search to make a array-gap from 8 points (on advise of the forum, This takes max. 200 mSec for 1400 points), then I had only 8 waypoints to check. When my position is out of range of my 8 waypoints, I create a new array-gap arround my position (this wil only happen from time to time).
This works enormesly robust by the binair search, with only very little overhead to secure things. That all.
Some times here:
Fetch from GPS of a GPRMC sentens: 40 mSec.
Valid fetch and all the work that has be done: max. 200 mSec.
With array-gap and the whole bunch: max. 400 mSec.
This all while I do plot the whole route, with all data possible...
So, there is time to do some Map displacement I think ;-)
I have to remark that I use only easy things from B4PPC, like tables, labels and buttons, non sofisticated things or trics (beginners mode)...
Have to mention also, that the behavior tables do surprise me, the SORT do change only indexes, and the SAVE csv do not always work, I had to save under a different name as it was loaded...
Can we use a variable to a string to use as a Filename?
Has the forum some idee what I have to do if I want go up to 14000 waypoint to search on?
Put Claude Belgium
Last edited: