Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinitialize laser tracker if needed #46

Closed
MuffinSpawn opened this issue Nov 15, 2017 · 2 comments
Closed

Reinitialize laser tracker if needed #46

MuffinSpawn opened this issue Nov 15, 2017 · 2 comments

Comments

@MuffinSpawn
Copy link
Owner

Detect when the laser tracker needs to be reinitialized and do the following:

  1. save state (i.e. current reflector position, etc...),
  2. go to ref#1
  3. init.cmd --> lasertracker
  4. return to previous action (i.e. go to saved reflector position)
@MuffinSpawn
Copy link
Owner Author

I have finished the implementation, but I am nervous. If the LT goes uninitialized in the middle of a step (move, find, measure, find, measure.... sequence), the component will have to be re-initialized manually/by the script because it cannot distinguish between find.ack from the re-init or one from a pending step find.

My inclination is to modify the behavior to

  1. save the inputs to the step,
  2. flush the inbound queue,
  3. abort Motion,
  4. abort Laser Tracker
  5. re-init,
  6. flush the inbound queue again, and
  7. redo the step from the start using the saved inputs.

There's a pathological case whereby an exit or abort could be issued during re-init, so it should respond appropriately to these events.

Also, abort will have to be implemented in Motion and Laser Tracker if the default functionality is insufficient.

@MuffinSpawn
Copy link
Owner Author

I'm punting on doing the updates for now (see issue #50).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant