Quote:
Originally Posted by rtfgnow
before you go for that update, can you make L assign teams going through the serpentine. So that L takes the place of L, L, L, L, L, L....
|
I honestly have no idea how to do that right now. Maybe I'll figure that out over Christmas break. I think I addressed that in the FAQs.
Here's what happens when you press L currently:
The program notes that the character is L, assigns one variable, and calls a list-picking function. That function checks for player lists, then enters a for loop where it first checks for the end of list flag, then checks if the team is taken. When it finds a team that isn't already picked, it verifies that they are attending (and triggers an alert if they aren't, which is what I was checking last night) and assigns them, then goes back into the main loop. The status is displayed, and the program waits for an input.
To do the list picking, I'd have to assign the next input to be L, which would keep it going until someone didn't have a list or ran out of teams on their list. The problem is, I'd need to do a lot of testing to make sure it didn't go into an infinite loop.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons
"Rockets are tricky..."--Elon Musk
