Open zhuber21 opened 11 months ago
Basic code satisfying this issue has been implemented and committed today - just needs to be tested with the BF TC
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.
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).