ac2cz / KlaTrack

G0KLA Satellite Tracker
8 stars 5 forks source link

Time offsets are not round number of minutes #5

Open ac2cz opened 5 years ago

ac2cz commented 5 years ago

Looking at the example display on the web page I figured out that the tic marks are every 12 minutes and 51 seconds.

Would it be a simple improvement to round your “scale multiplier result” so that the tic marks always came out in multiples of an even number of minutes. With ten minutes being the default, then one could scale to integer multiples of that even number?

ac2cz commented 5 years ago

This needs to be fixed in two chunks. The first piece is to change the label plotting to use a set "step" distance between each label e.g. 10 mins. That is implemented in V1.01. The labels are then a set distance apart but they are still not round numbers. e.g. two labels might be 16:10:35 and 16:10:45. They are odd values because they correspond to the actual position data that was calculated.

So the second change is to calculate the positions at round numbers. Currently we grab the current time and then calculate all of the positions out in to the future based in the step time. If we adjust the current time to be a round number of minutes and zero seconds, then we will create labels that have a round number of minutes. We need to make sure that we don't upset the calculation of positions in the circular buffer.