View Single Post
  #3   Spotlight this post!  
Unread 16-02-2011, 17:30
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Robot Arm Victor Motor

Code:
public void operatorControl() {
    while(isOperatorControl()) {
        getWatchdog().setEnabled(true);
        getWatchdog().feed();

        if(joy.getRawButton(10)) {
            arm.set(-0.2); // arm goes down.
        } else if(joy.getRawButton(11)) {
            arm.set(0.2); // arm goes up.
        } else {
            arm.set(0);
        }
    }
}
Did you check the pwm?
__________________
Code:
class team2412(GP):
    def __init__(self):
        GP.__init__(self)
        self.coopertition = True
        self.info = {"name": "Robototes", "school": "Sammamish High School, Bellevue, WA"}
        assert self.kind_people == True
Reply With Quote