Add a trip condition to RPU system.
We dynamically resize the sampling window in the RPU protection system. At 900ms, we start seeing the average current values start to drop.
The time between the sync pulse and the chopper gate is used to calculate a baseline which is subtracted from the calculated values. The baseline sample time is based on the window size. If we expand our window size enough, the baseline calculation starts to include the actual beam, resulting in the averages dropping in value.
The firmware should trip if it can't sample a full window of baseline data before the chopper gate becomes active.