![]() |
MPLAB Interrupt Issues
We are a rookie team this year and have been told that doing interrupts in MPLAB is a very bad thing. We were hoping to use one so we could use two gear tooth sensors on our two tank-driving wheels during autonomous mode. We hoped to be able to count up the amount of teeth we see until it gets to a certain number and then move to the next part of the code. Would this be a bad idea? If so, what else would be able to use if we wanted to tell the robot to go so many rotations? If not, where would we find good information about interrupts?
Thanks For Your Time! :) |
Re: MPLAB Interrupt Issues
Interrupts are your friend :)
See Kevin Watson's website (http://kevin.org/frc/) for well commented examples of encoder usage. His 2008 example code has encoder support built-in. |
| All times are GMT -5. The time now is 01:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi