Setting up the track (adding additional tape color sensor)
Creating a state machine class (not specific to mario kart, but could be useful in any project)
Code for detecting colors sensed by color sensor. We did this already last year, but I'd like the new students to write this code.
I was thinking for the student machine class we could make it like the one we made for the romi, but make it more extensible with annotations. Basically to create a state machine we could extend a StateMachine class, and the state functions would be annotated with something like:
@initState("state name") and @runState("state name")
I was thinking for the student machine class we could make it like the one we made for the romi, but make it more extensible with annotations. Basically to create a state machine we could extend a StateMachine class, and the state functions would be annotated with something like:
@initState("state name")
and@runState("state name")
http://tutorials.jenkov.com/java-reflection/annotations.html http://tutorials.jenkov.com/java/annotations.html