ashirbad97 / JointAttentionTrainingVRETPlatform

A VR and ET based Joint Attention Platform for kids with ASD
1 stars 0 forks source link

Enforce Calibration Coroutine Waiting Failed #3

Open ashirbad97 opened 1 year ago

ashirbad97 commented 1 year ago

In EnforceCalibrationCoroutine the co-routine should be able to hold the function (i.e yield) only when the eye calibration screen has been completed. As an additional check (as we don't know what the status of calibration result will be) we have conditions to check if the eye-tracking has been successfully calibrated. If not successfully calibrated then we run the Coroutine again recursively.

ashirbad97 commented 1 year ago

Most likely this condition appears due to the fact that the StartEyeTrackingCalibration(), first asks for the adjustment of the headset and until then the coroutine yield for WaitForEyeTrackingCalibrationEnd will return false as the calibration has not itself started so it goes into the double check condition and thankfully gets caught and recursively called again.

ashirbad97 commented 1 year ago

This introduces an additional error when the Head Adjustment GUI is not visible at all.

ashirbad97 commented 1 year ago

Prevents from escaping the hold of coroutine by holding the coroutine till the ET has started