View Single Post
  #3   Spotlight this post!  
Unread 19-03-2014, 11:39
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: PIDSubsystem works once then disables the entire RobotDrive

A couple of things:

First thing, in the initialize function of drive to distance, you should reset the PID. Otherwise the second time you call it the PID isn't zero'd

Quote:
driveTrain.getPIDController().reset();
Second thing,

Quote:
public void usePIDOutput(double output) {
driveMechanum_Cartesian(output, output, 0);
}
This seems wrong. I would assume that you only want to use the output on a single axis of the mecanum drive. I would expect it to be
Quote:
driveMechanum_Cartesian(output, 0, 0);
__________________
"Never let your schooling interfere with your education" -Mark Twain
Reply With Quote