View Single Post
  #1   Spotlight this post!  
Unread 23-12-2014, 13:14
baumgartensam's Avatar
baumgartensam baumgartensam is offline
Registered User
AKA: Sam Baumgarten
FRC #0751 (Barn2Robotics)
Team Role: Alumni
 
Join Date: Apr 2014
Rookie Year: 2013
Location: United States
Posts: 42
baumgartensam will become famous soon enough
Re: pic: This is the change Frank was talking about.

We've started on this years code and we wanted to publish it to ensure we can use it on this years robot:
Code:
public class PizzaThrower extends Subsystem {
    public void throwPizza(Pizza pizza) {
        if (!pizza.toppings.contains(PizzaTopping.PINEAPPLE)) {
            // WE NEED THE PINEAPPLE
            addPineapple();
        }

        smsFrank();
        startRippleGenerator(); // to scare the fish
        startShooterWheels();
        enableOven(); // to ensure the pizza is fully cooked
        fastBakePizza();
        throwPizza();
        turnOffOven();
        shoot();
        stopShooterWheels();
        stopRippleGenerator();
        flyToElevation(1); // meters
        swim(2); // meters
    }
}
Hopefully this helps everyone out with the pizza water flying game

Last edited by baumgartensam : 23-12-2014 at 13:17.
Reply With Quote