ferrous26 / cs452-flaming-meme

CS452 Real Time Programming
MIT License
2 stars 1 forks source link

Fix time estimations in train master #120

Open ferrous26 opened 10 years ago

ferrous26 commented 10 years ago

Time estimations are horrendously (but consistently) off in train master for some reason. Position updating seems to be correct, so it must be something else.

This is a good opportunity to refactor some train master logic. Train master needs mission control to compute a couple of things:

Given two (ordered) track locations, A and B, find the distance from A to get to B.

This is similar to get_position_from but moves backwards instead of forwards.

ferrous26 commented 10 years ago

This may need to be done concurrently with moving short moves. An overall refactoring of train master.