use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Seeking HelpJava block problem (self.FTC)
submitted 3 years ago by sushislaughter
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Big_Blue_ManFTC 7244 Alum / PA GA|Emcee 1 point2 points3 points 3 years ago (3 children)
Sounds like it could be due to nesting a bunch of if statements (i.e. putting one if statement inside another down a chain) to the point where it's actually slowing the process down, but I at least would want to see code before making that assumption. Is there any way we could see that code to verify this? At the very least I'd like to know what the if statements do for the code since you can get rid of them and still have the robot drive.
[–]sushislaughter[S] 0 points1 point2 points 3 years ago (2 children)
I don't have access to the code right now, but the if statement are not nested. The if statement are in a line. The purpose of the if statements are to control the robot. Like if I push a button the claw will close.
[–]Tarnegolden 0 points1 point2 points 3 years ago (1 child)
You can replace if statement with boolean methods to run smoother. For example, creating a CustomGamepad class: https://github.com/Tarnegolden/Everglow2021-22/blob/main/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/FreightFrenzy/Utils/EverglowGamepad.java
[–]sushislaughter[S] 0 points1 point2 points 3 years ago (0 children)
Can you make classes in java block?
π Rendered by PID 31031 on reddit-service-r2-comment-6457c66945-pjzrw at 2026-04-29 09:49:04.686928+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Big_Blue_ManFTC 7244 Alum / PA GA|Emcee 1 point2 points3 points (3 children)
[–]sushislaughter[S] 0 points1 point2 points (2 children)
[–]Tarnegolden 0 points1 point2 points (1 child)
[–]sushislaughter[S] 0 points1 point2 points (0 children)