RonPeeters
Member
Hi @bernard,
I am wondering why your imuDirPID controller in motorControlOdo() has a direct effect on the outputted PWM?
Wouldn't it be more correct/efficient to let the motorLeft and motorRight PIDs control the RPM and let the imuDirPID have an effect on the RPM of each wheel to keep the imuHeading correct?
But maybe I am overlooking something.
I am wondering why your imuDirPID controller in motorControlOdo() has a direct effect on the outputted PWM?
Wouldn't it be more correct/efficient to let the motorLeft and motorRight PIDs control the RPM and let the imuDirPID have an effect on the RPM of each wheel to keep the imuHeading correct?
But maybe I am overlooking something.