We noticed that if you call motors.largeBC.setInverted(true);
This does not invert the motors.largeB/C.angle() values. Seems like it would be a good idea if the setInverted also inverted the value so it counts up instead of down. We solved this with a Math.abs(motors… when doing the comparison.
I don’t think this issue is relevant. Check the MakeCode fork. If it reoccurs, let me know.