Now What?
Now that you've gone through the tutorial and have a RARS robot navigating the track
what do we do now?
A great next step would be to create an acceleration model for the RARS
robot. Here are some ideas to get you going...
- Create a model who's output is the "target speed" of the car (0
- 220)
- Create a model who's output is the percent change in velocity from the
current velocity. You could have output sets such as
"Break", "Coast", and "Hit the Gas"
- Create a Fuzzy State Machine (FuSM) where Spark! just determines which
action should be taken (Break, or accelerate) and have code in the robot to
calculate exactly how much breaking or acceleration should occur.
Hint: This will use the get_mom_output()
function to get the output value.
Useful Input
Here are some variables you might use as input:
- Curve of current section of track
- Curve of next section of track
- Distance to the end of the current section
After you build and test your model, submit
it to the Spark! discussion boards for the world to see.
|