Skip to content
Snippets Groups Projects

Beam signals

Merged Marcus Oskarsson requested to merge gh-a54a658a/273/meguiraun/beam_signals into master

Created by: meguiraun

sending beamPosChanged and beamInfoChanged through the socketio.

Data includes: beam_position, beam_size, shape

PS: I know ... vacation... no hurries

Merge request reports

Merged by avatar (Jan 10, 2025 3:32pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
165
166 try:
167 beamInfoDict = beamInfo.get_beam_info()
168 except Exception:
169 beamInfoDict = dict()
170
171 ret.update({'position': beamInfo.get_beam_position(),
172 'shape': beamInfoDict.get("shape"),
173 'size_x': beamInfoDict.get("size_x"),
174 'size_y': beamInfoDict.get("size_y")
175 })
176
177 msg = {'Signal': signal,'Message': signal, 'Data': ret}
178 #logging.getLogger('HWR').debug('[MOTOR CALLBACK] ' + str(msg))
179 try:
180 socketio.emit('beam_changed', msg, namespace='/hwr')
Please register or sign in to reply
Loading