Skip to content

Content Issue - Stage 0: Conditionals #144

Description

@slowpoke111

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

Image

Additional context
I'd be happy to pr this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions