[INSTRM-741] Populate frame ID is fpsActor Created: 24/Aug/19  Updated: 15/Oct/21  Resolved: 14/Aug/21

Status: Done
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: chyan Assignee: chyan
Resolution: Done Votes: 0
Labels: EngRun
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: EngRun03

 Description   

fpsActor needs to know the frame id for query the database for the telescope information and calculate the distortion.



 Comments   
Comment by cloomis [ 26/Aug/19 ]

The mcsActor (and other) image generating actors currently only generate filename. This does indirectly give you frame and visit IDs, but we should add visitId and frameId keywords.

If you need something now, take mcsFilename = self.actor.models['mcs'].keyVarDict['filename']. Then frameId = int(pathlib.Path(filename).stem[4:], base=10

Comment by cloomis [ 14/Aug/21 ]

Done as part of INSTRM-1297. Specifically, the actor holds an instance of a Visitor class, which lets the fps command handlers and the cobraCharmer camera controller communicate the active MHS cmd, and the visit and frame numbers.

Generated at Sat Feb 10 16:28:10 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.