scos-sensor icon indicating copy to clipboard operation
scos-sensor copied to clipboard

Status endpoint last calibration time should pull from signal analyzer

Open aromanielloNTIA opened this issue 2 years ago • 0 comments

Currently the status endpoint loads the sensor cal on SCOS Sensor startup, and reads the last_calibration_time directly from this.

Since Y-factor calibration is implemented as an action, the status endpoint should query the signal analyzer for the most recent sensor cal time.

The best approach here is probably the keep the existing field, and add a new one: last_onboard_calibration_time or last_field_calibration_time. This way the status endpoint indicates the date from the lab-provided calibration data as well as any in-field calibrations performed onboard.

Relevant code here

aromanielloNTIA avatar Jan 25 '23 01:01 aromanielloNTIA