EfficientElevator28 / Simulation

MIT License
1 stars 0 forks source link

Implement elevator physics #5

Closed SMTDOO closed 4 years ago

SMTDOO commented 4 years ago

Make elevator realistic

obarbour commented 4 years ago

Programmatically, we could precompute the floor distance travel times (ex. calculate the 1 floor, 2 floor, etc. travel times) based on the physics constants we have entered.

obarbour commented 4 years ago

Waiting on step function to know exactly how to proceed.

obarbour commented 4 years ago

Possible limitation (but may be fine): physics may break down if the floor that the elevator is currently going to is removed from the queue.

obarbour commented 4 years ago

Possible limitation (but may be fine): physics may break down if the floor that the elevator is currently going to is removed from the queue.

Decided that we will never alter the first floor in the elevator queue, only the second (there will only be two elements at any time).

obarbour commented 4 years ago

The only thing to do, besides fix bugs if they arise, is to create a function that checks if the elevator can stop by a particular floor. This function would be used by a baseline comparison if we were to do one. Closing under the assumption that this won't be developed further.