ANU-Rocketry / control-panel

Control panel for ANU Rocketry's liquid rocket engine testing platform
5 stars 0 forks source link

Pin firing delay for LabJackFake #5

Closed OliverBalfour closed 2 years ago

OliverBalfour commented 2 years ago

The fake LabJack simulator class currently toggles pins with no delay, so when you start a sequence on a dev server the pin firing times in the UI are not realistic.

We should probably just sleep in the pin toggle and state reading functions an amount sampled from a normal distribution, where the mean and std dev are roughly similar to how long it takes with the real deal (this doesn't have to be anywhere near perfect, this is a total nitpick). This should take like 10 minutes

OliverBalfour commented 2 years ago

It turns out this is nontrivial for a few reasons

Overall not worth pursuing, so I'll close this