View Single Post
  #4   Spotlight this post!  
Unread 03-08-2016, 10:12 AM
sagrossm sagrossm is offline
Registered User
AKA: Sam
FRC #5712 (Hemlock's Gray Matter)
Team Role: Mentor
 
Join Date: Feb 2016
Rookie Year: 2016
Location: Hemlock, MI
Posts: 13
sagrossm is a name known to allsagrossm is a name known to allsagrossm is a name known to allsagrossm is a name known to allsagrossm is a name known to allsagrossm is a name known to all
Re: navX MXP without PID control

Ok, we've been trying to implement it and it's just been really inconsistent (usually turning too far). Looked online for help and I can only find examples with PID, that's why I made that assumption. So is there anything I can do to make it more accurate and reduce error? This is a button that we have:

if((driveStick.getRawButton(12) == true)) {

if(gyro.getYaw() > -140){
leftFront.set(0.3);
leftRear.set(0.3);
rightFront(-0.3);
rightRear.set(-0.3);
}

else if(gyro.getYaw() <= -140){
leftFront.set(0.0);
leftRear.set(0.0);
rightFront(0.0);
rightRear.set(0.0);
}
}
Reply With Quote