ccatobs / pcs

Prime-Cam Control System (PCS) agents for use with the SO-OCS system - controlling hardware and software for the Prime-Cam instrument on the CCAT Collaboration's Fred Young Submillimeter Telescope
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Write BF TC driver code #1

Open zhuber21 opened 1 year ago

zhuber21 commented 1 year ago

Things to do for this driver code:

From there we should be good to flesh out the functionality as needed. There are two basic types of functions for something like this: get functions and set functions. The get functions should just return the data that you requested from the BF TC, while the set functions should change something on the BF TC (and ideally report whether they were successful or not).

zhuber21 commented 12 months ago

Basic code satisfying this issue has been implemented and committed today - just needs to be tested with the BF TC

zhuber21 commented 10 months ago

Testing revealed that the BF TC just cycles through channels without a way of setting which channel is the active channel (other than disabling all the other channels), so I've adjusted the driver functions accordingly to pull the most recent measurement (for whichever channel is most current) in the main block instead of in the Channel class. The get_latest_channel() method may need to be developed further - it is not clear whether that is always the same channel as the most recent measurement or if it changes before the measurement reported in get_latest_measurement() is updated with the newest data. If it is the later, there is a phase delay between these two methods, which may complicate how the acq() function in the agent knows when to check for new data.