![]() |
Coding for a lifter?
Hi, I'm vincent from FRC team 3229, Hawktimus Prime. We just finished our drive program yesterday and now we need to work on the lift mechanism for our robot so we can pick up totes. The only code we have is one Java file called Robot.java in our project. Here's the code:
Code:
package org.usfirst.frc.team3229.robot; |
Re: Coding for a lifter?
What kind of motor controller are you using? Talon, Victor, or Jaguar?
|
Re: Coding for a lifter?
Quote:
Code:
...Code:
Talon elevatorMotor=new Talon(elevator);I've not used xbox class so I don't know if getRawButton is best way to get buttons or not, or if mappings exist avoiding need for LIFT_BUTTON/LOWER_BUTTON, but using local names with explicit names for lift and lower help keep your code more understandable. |
Re: Coding for a lifter?
Thank you!
|
| All times are GMT -5. The time now is 10:53. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi