neurogears / vestibular-vr

Closed-loop VR setup for Rancz Lab
2 stars 0 forks source link

Empty playback stream causes motor closed loop not to run #73

Closed RoboDoig closed 2 months ago

RoboDoig commented 2 months ago

In the schema, the default value for the playback file path is an empty string. If the session is started with no playback file path, no playback file is loaded and no values arer pushed to the playback stream. In the case of motor procession, since it uses a WithLatestFrom in the calculation, if the playback stream is empty no further values from movement delta will be streamed and no motor commands will be sent. This can be remedied by always loading a playback file but this is prone to user error.

Instead, by default an initial value should always be pushed to the playback stream when calculating motor procession.

RoboDoig commented 2 months ago

Closing with #74