rpm
March 31, 2020, 5:36am
18
Take a look at these threads…
For some time I have been trying to develop a PID. I took a look at @anon4126930 ’s video on how to make one. I understand some parts of it, but cannot seem to get it working in autonomous. If someone could tell me what’s wrong with the code, and maybe help me a little with the changes, that would be amazing.
double kP = 1; // Error
double kI = 0.001 ; // Last, Increase Precision
double kD = 0.01; // To Fast or Too Slow
double turnkP = 1 ;
double turnkI = 0.001;
double turnkD = 0.1;
// Auton Settin…
And
this should be easier for others to read. I’ll look at the actual code later if no one responds.
/----------------------------------------------------------------------------/
/* /
/ Module: main.cpp /
/ Author: VEX /
/ Created: Thu Sep 26 2019 /
/ Description: Clawbot Competition Template /
/ /
/----------------------------------------------------------------------------*/
// ---- START VEXCODE CONFIGURED DEVICES ----
// Robot Configuration:
// [Name] [Type] [Port(s)]
// Controller1 controlle…
@JD6 and @Micah_7157X based their pid code off a tutorial @anon4126930 made. It has turn pid in the drive pid which if set to zero should make it a driv straight pid.