orbiternassp / NASSP

Project Apollo - NASSP
Other
158 stars 61 forks source link

Battery C Charge Indicator Goes To Zero Upon 2D Panel Switch #740

Open rcflyinghokie opened 2 years ago

rcflyinghokie commented 2 years ago

If Battery C needs to be charged, and the charger is turned on, it indicates charging amperage. However if you switch panels in 2D and return to MDC3 it reads zero. You can turn off the charger and back on and the current comes back up but the behavior is reproducible.

The behavior does not exist in the VC or when going from external to 2D view. Additionally it appears looking at FC flows that the charging stops after the panel switch, not just the display itself.

n7275 commented 2 years ago

Well this is a weird one. Good find. Somehow I missed the IRC discussion on this if there was one, but I'm assuming that that there is a refresh in the wrong place?

indy91 commented 2 years ago

There is some wiring that is right now done every time you switch between 2D panels. And with battery C there is some re-wiring done in code when the battery charger is charging it. That is because our systems simulation doesn't allow two-way power flow and there are some CBs that actually have two-way power flow if battery C is used vs. battery C being charged. I'll work on this issue very soon, it's not a difficult fix.

n7275 commented 2 years ago

There is some wiring that is right now done every time you switch between 2D panels. And with battery C there is some re-wiring done in code when the battery charger is charging it. That is because our systems simulation doesn't allow two-way power flow and there are some CBs that actually have two-way power flow if battery C is used vs. battery C being charged. I'll work on this issue very soon, it's not a difficult fix.

I have some Matlab code I wrote a while back for drawing from multiple power sources, if it's helpful. https://gist.github.com/n7275/8c95469fbe2d7f234eded87c79130c4a