|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#2
|
|||
|
|||
|
Re: Best way to drive straight using a gyro?
This is the code as updated at our last meeting before our regional. We'd really like to get an idea of how well it'd work before we get there:
package edu.wpi.first.ReboundRumble.subsystems; mport edu.wpi.first.ReboundRumble.OI; import edu.wpi.first.ReboundRumble.RobotMap; import edu.wpi.first.ReboundRumble.commands.DriveWithJoys ticks; import edu.wpi.first.wpilibj.Gyro; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.command.PIDSubsystem; import edu.wpi.first.ReboundRumble.commands.CommandBase; /** * * @author Developer */ public class DriveSystem extends PIDSubsystem { private static final double Kp = 3;} Last edited by ProjectZero : 01-03-2012 at 10:47. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|