AO System Calibration

ShaneAO_Calibration: This module supports the process of determining the AO system control matrix (see Parameter Generator). Its main job is to create the H matrix, which maps tweeter modes to wavefront sensor centroid signatures.

calibrate.calibrate(amp=None, bias=None, delay=0.5, dm='tweeter')

Calibrate the system by putting modes on the tweeter and recording the centroids. Save the H matrix in a fits file

calibrate.protectFile(filename)

protect the file named filename by moving a copy of it into an archive subdirectory of the directory the file is currently in. The archived filename is appended with a date-time-stamp to make it unique and recoverable.

calibrate.testDelay(self, sauce, amp=10000.0, bias=21500.0, dt=0.5)

testDelay is an internal test to measure the time for the plant to respond to a command. The delay setting in calibrate() must be longer than this response time to get consistent results.

For the sauce simulator, the response time is about 0.5 seconds. I expect that the real system will be much faster, on the order of a few hundred microseconds