I’m attempting to set up 2D Motion Profiling with PID and can’t seem to find any examples of such. I was wondering if my two snippets of code I made do the same thing. I was also wondering what this warning means.
Warning:
First Code:
ChassisControllerPID driveTrain = ChassisControllerFactory::create(
{8, 7},
{-18, -17},
IterativePosPIDController::Gains{0.001, 0, 0.0001},
IterativePosPIDController::Gains{0.001, 0, 0.0001},
IterativePosPIDController::Gains{0.001, 0, 0.0001},
AbstractMotor::gearset::green,
{4_in, 13.5_in}
);
AsyncMotionProfileController move = AsyncControllerFactory::motionProfile(
1.0,
2.0,
10.0,
driveTrain
);
Second Code:
auto driveTrain = ChassisControllerFactory::create(
{8, 7},
{-18, -17},
IterativePosPIDController::Gains{0.001, 0, 0.0001},
IterativePosPIDController::Gains{0.001, 0, 0.0001},
IterativePosPIDController::Gains{0.001, 0, 0.0001},
AbstractMotor::gearset::green,
{4_in, 13.5_in}
);
auto move = AsyncControllerFactory::motionProfile(
1.0,
2.0,
10.0,
driveTrain
);