Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,16 @@ private void Awake()
enabled = false;

// Update manipulator inside brain state
_probeController.MovedThisFrameEvent.AddListener(() =>
{
if (_isSetToInsideBrain != _probeManager.IsProbeInBrain())
CommunicationManager.Instance.SetInsideBrain(ManipulatorID, _probeManager.IsProbeInBrain(),
insideBrain =>
{
_isSetToInsideBrain = insideBrain;
_probeController.UnlockedDir = insideBrain ? new Vector4(0, 0, 0, 1) : Vector4.one;
});
});
// _probeController.MovedThisFrameEvent.AddListener(() =>
// {
// if (_isSetToInsideBrain != _probeManager.IsProbeInBrain())
// CommunicationManager.Instance.SetInsideBrain(ManipulatorID, _probeManager.IsProbeInBrain(),
// insideBrain =>
// {
// _isSetToInsideBrain = insideBrain;
// _probeController.UnlockedDir = insideBrain ? new Vector4(0, 0, 0, 1) : Vector4.one;
// });
// });
}

private void OnDisable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void Initialize(EphysLinkSettings settingsMenu, string manipulatorID, str
// Set type to pathfinder and register with Ephys Link
newProbe.ManipulatorBehaviorController.ManipulatorType = type;
newProbe.Color = Color.magenta;
newProbe.name = "nsp_" + manipulatorID;
newProbe.SetIsEphysLinkControlled(true, manipulatorID);
}
else
Expand Down Expand Up @@ -375,7 +376,6 @@ private void UpdateBrainSurfaceOffsetInputField(float brainSurfaceOffset)
[SerializeField] private InputField _brainSurfaceOffsetInputField;
[SerializeField] private Button _returnToZeroCoordinateButton;
[SerializeField] private Text _returnToZeroCoordinateButtonText;
[SerializeField] private GameObject _manualControlGroup;
[SerializeField] private Toggle _enableManualControlToggle;

private ProbeManager _attachedProbe;
Expand Down