Fixed accelerator invalid target temperature

This commit is contained in:
LemADEC 2017-08-26 14:18:34 -04:00
parent c0d665ab61
commit 51f8661a65

View file

@ -286,7 +286,7 @@ public class AcceleratorSetup extends GlobalPosition {
addToBoundingBox(trajectoryPoint, 2);
// count main magnets
final int indexTier = trajectoryPoint.type & TrajectoryPoint.MASK_TIERS - 1;
final int indexTier = (trajectoryPoint.type & TrajectoryPoint.MASK_TIERS) - 1;
if ((trajectoryPoint.type & TrajectoryPoint.MAGNETS_HORIZONTAL) != 0) {
countMagnets[indexTier] += 2;
}