Which page?
2nd code block on https://frcsoftware.org/learning-course/stage0/conditionals/
What's wrong?
double distance = 6;
if (distance < 10) {
System.out.println("Motors are spinning");
drivetrain.setThrottle(1); // runs the motor at full speed
}
The website shows this code with this description:
"The condition is distance < 10. We know distance is equal to 6, therefore we can think of the condition saying 6 < 10. 6 is less than 10 which makes the condition true. This means the code inside the if block runs, which prints “Motors are spinning” and the spins the motors at half speed."
However, according to the code and the comment, the motor is spinning at full speed.
What should it say? (optional)
Update the description text to say full speed
Source / reference (optional)
N/A
Screenshots
Additional context
I'd be happy to pr this
Which page?
2nd code block on https://frcsoftware.org/learning-course/stage0/conditionals/
What's wrong?
The website shows this code with this description:
"The condition is distance < 10. We know distance is equal to 6, therefore we can think of the condition saying 6 < 10. 6 is less than 10 which makes the condition true. This means the code inside the if block runs, which prints “Motors are spinning” and the spins the motors at half speed."
However, according to the code and the comment, the motor is spinning at full speed.
What should it say? (optional)
Update the description text to say full speed
Source / reference (optional)
N/A
Screenshots
Additional context
I'd be happy to pr this