-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update how the HRC 24v state is set #64
Conversation
The 24V input is not needed for an accurate thermal prediction. I confirmed this by running That 24V dependence should not have been in the HRC model since is basically impossible to calibrate:
Formally speaking this PR looks correct, and indeed the current code looks incorrect since it brings in a spurious heating component for the whole HRC observation. Another option that will be equivalent and removes the kadi update dependence is just to set the 24V state to |
@taldcroft as I noted in sot/kadi#281 I agree that, in reality, the 24v is not on long enough to affect temperature. That being said, if it is left on by mistake it definitely would affect temperature. Thinking out loud, I wonder if we should still keep this in the model in future model fits just to give us an alternative way of catching a case where the 24v was not turned off as expected. |
@matthewdahmer - the 24v ON/OFF commanding is done by the HRCDET ATS, so not getting turned off seems pretty unlikely. Nevertheless there should be a direct load review check of the 24V commanding timing. Right now the model does depend on the 24v status in a way that might turn up an error in load commanding, but we wouldn't want to rely on that. The |
@taldcroft Sounds good, we can remove the 24v element of the model during the next hrc model update, unless you think we should do it sooner? |
@matthewdahmer @jzuhone - this update looks fine to me with the appropriate testing. I think what is needed is to run this on at least one (and better yet all) the HRC test loads in a Ska3 environment with the kadi from sot/kadi#281 in the path. Then verify that the thermal model predictions from |
I think this also needs an update here (add 'hrc_24v' to the list)
to get the 24v state. And review and update of the test and regression outputs. |
@jeanconn thanks for catching that I fixed it and pushed the change here (ping @matthewdahmer) |
Thanks! With that change, cea_check runs for me but I noted the cea-related tests still weren't passing and I didn't dig in to see which were trivial (new hrc_24v column in test data?) and which required some knowledge of what was reasonable for updates to regression test outputs. |
@jzuhone thank you for adding the |
Once we are certain nothing will change here or on the kadi side in these PRs, I will update the answers as part of this PR. |
Answers have been updated. I don't know if @jeanconn wants to verify that they pass for her, but otherwise I am good with this. |
And we can ignore the ruff failures--I will handle those separately. |
Description
This update how the HRC 24v state is set. With a pending update to kadi, the 24v state will be available, allowing acts_thermal_check to properly set this state to generate an accurate thermal prediction.
Interface impacts
No interface impacts
Testing
Unit tests
Independent check of unit tests by JC
Functional tests
For functional testing - Dan ran the HRC test weeks. Jean put some plots comparing those to the FOT runs in sot/kadi#281.