if (camera.getPitchAngle() < 44) {
status = "Moving camera angle";
int targetPitch = random(44, 67);
log(targetPitch);
if (camera.movePitch(targetPitch)) {
if (!CTime.sleepUntil(3000, 100, () -> camera.getPitchAngle() == targetPitch)) {
return random(50, 300);
}
}
}
This always sets my camera pitch to 67...
targetPitch doesn't always return 67.
Let me know if you get this behavior too, or if I'm doing something wrong in my code.