9#include <PIDController.h>
122 inline void handleISR(
bool newA,
bool newB);
void setEffort(int16_t effort)
void setMotorEffort(int16_t effort)
A generic PID controller.
void setEffort(int16_t effort)
Sets the effort for the motor directly. Overloaded for the left and right motors. Use Chassis::setEff...
void setMotorEffort(int16_t effort)
void setTargetSpeed(float targetSpeed)
volatile CTRL_MODE ctrlMode
int16_t getAndResetCount(void)
void handleISR(bool newA, bool newB)
static void initEncoders()
void allowTurbo(bool turbo)
Turns turbo mode on or off.
void calcEncoderDelta(void)
volatile int16_t prevCount
virtual void setEffort(int16_t effort)=0
Sets the effort for the motor directly. Overloaded for the left and right motors. Use Chassis::setEff...
void setPIDCoeffients(float kp, float ki)
void moveFor(int16_t amount)