|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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! ![]() |
|
#2
|
|||||
|
|||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IR Issues in Mplab | drewjones13 | Programming | 3 | 18-01-2008 19:36 |
| MpLab issues! | AdmiralAllen | Programming | 3 | 15-01-2007 22:47 |
| MPLAB Issues | jcatt | Programming | 3 | 02-02-2006 17:49 |
| Issues with MPLAB 7.30 | gnirts | Programming | 4 | 25-01-2006 22:57 |
| using the MPLAB IDE MPLAB SIM simulator | WizardOfAz | Programming | 1 | 03-11-2003 01:24 |