sot / kadi

Chandra commands and events
https://sot.github.io/kadi
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Add acisfp_setpoint state #161

Closed taldcroft closed 4 years ago

taldcroft commented 4 years ago

Description

This adds a new state to track the ACIS FP temperature based on commands of the form WSFTNEG*.

This could have been done with far less new code by just adding a new elif block to the existing ACISTransition class. However, the first WSFTNEG command in the commands table is in 2003, so querying states before then was crashing. The current implementation puts in place a default of -121.0.

Testing

jzuhone commented 4 years ago

My quick comment here (before I do more testing) is that I would like to see a name change to reflect the fact that this is a setpoint change. So:

acisfp_temp --> acisfp_setpt ACISFP_TempTransition --> ACISFP_SetPointChange

or something similar

jzuhone commented 4 years ago

@taldcroft aside from the nit above, I'm generally good with this. I tried it out and it works fine.

The one issue is that we did this during some CAPs in 2018, maybe about 3 times I think. I would have to dig, but I could probably get the times for those. What would be the best way to incorporate those?

taldcroft commented 4 years ago

@jzuhone - yes, I had independently thought about calling this setpoint not temp. This is done.

taldcroft commented 4 years ago

The one issue is that we did this during some CAPs in 2018, maybe about 3 times I think. I would have to dig, but I could probably get the times for those. What would be the best way to incorporate those?

If you can supply us with all non-load times and the exact command names (TLMSID value) we can fairly easily put this in using the existing machinery in Chandra.cmd_states.