-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nostradamus #142
Nostradamus #142
Conversation
public class Nostradamus implements Positioner { | ||
private static final Logger logger = Logger.getLogger(Nostradamus.class.getName()); | ||
private final int INTERVAL_CALCULATE_MS = 500; // How often to handle new detections (in milliseconds) | ||
private final int INTERVAL_FETCH_MS = 60000; // Interval between fetching baton switchovers (in milliseconds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ik denk dat dit wel vaker mag gebeuren? of zorgt dat ergens voor problemen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shorten the interval 27d1dc4
private final int INTERVAL_FETCH_MS = 60000; // Interval between fetching baton switchovers (in milliseconds) | ||
private final int INTERVAL_DETECTIONS_MS = 3000; // Amount of milliseconds to group detections by | ||
private final int MAX_NO_DATA_MS = 30000; // Send a stationary position after receiving no station update for x amount of milliseconds | ||
private final int AVERAGE_AMOUNT = 10; // Calculate the median running speed of the last x intervals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
median or average?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the only reference left to average. All the 10 other references say median so it's median but changed it anyway 877fe72
…y to fix simplePositioner cursedness with threading
New positioner (rebased on station-ws-conn)
Features:
Requires a restart:
Todo (at a later stage):