![]() |
Interrupt issue with new code
2 Attachment(s)
I've been trying to write the drive code for my current prototype drive, but I'm having issues.
This is the setup: Hardware: BaneBots gearbox connected to pwm01 Banebots encoder kit and encoder divider board installed on the gearbox. Divider direction connected to rc_dig_in07 Divider speed connected to rc_dig_in03 Software: Kevin's new code In "interrupts.h" #define ENABLE_INT_3_6 un-commented In "teleop.c" "Initialize_Int_3_6();" added to Initialization() where comments indicate. Code:
void Teleop(void)Call to "Encoder_One_Tick()"(in Drive.c) added in Int_3_Handler EDIT: I attached the drive.c/.h files The Direction displays correctly, but the count is always 0. I'm sure I forgot something really simple, but I can't figure it out. I'll send the complete project to anyone who wants to look at it. |
Re: Interrupt issue with new code
Quote:
Code:
void Encoder_One_Tick(void) |
Re: Interrupt issue with new code
Quote:
I commented that out when I realized I was having issues. The Bolded line is not commented out. |
Re: Interrupt issue with new code
Quote:
http://www.chiefdelphi.com/forums/sh...0&postcount=78 -Kevin |
Re: Interrupt issue with new code
Quote:
EDIT: I tried changing to interrupt 1, but still nothing. |
Re: Interrupt issue with new code
If it'll help, here's the latest code with encoder support:
http://kevin.org/frc/ifi_frc_encoder_beta.zip -Kevin |
Re: Interrupt issue with new code
Quote:
Thanks! |
| All times are GMT -5. The time now is 10:57. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi