-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odometry implementation #196
Comments
I investigated how to calculate the de velocity using odometry and came up with a formula |
`#define bodyEncoderSignal CHANGE // encoder LeftMotor #define bodyEncoderLeftSignal bodyEncoderSignal // encoder the rotation direction //encoder variables to do the odometry // encoder pulses void bodyEncoderLeftCounterA() { // look for a low-to-high on channel A void bodyEncoderLeftCounterB() { // look for a low-to-high on channel B
} // Look for a high-to-low on channel B void setup() { pinMode(bodyEncoderLeftPinA,INPUT_PULLUP); attachInterrupt(bodyEncoderLeftIntA, bodyEncoderLeftFunctionA, bodyEncoderLeftSignal); void loop() {
}` |
You can use the AtlasCar2 code as a guide!
The text was updated successfully, but these errors were encountered: