|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Robot Arm Victor Motor
Our team's mechanical engineer insist's our arm not working is a program error. I don't think so, so I just want to double check here.
Code:
Victor arm;
public void robotMain() {
arm = new Victor(10);
}
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.
}
}
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|