|
|
|
#1
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
http://kevin.org/frc/ifi_frc_beta_4.zip *Please* help me out and have a look at the code and documentation (start with readme.txt) and provide feedback before I go public with the code on my website, which I'd like to do on Friday or early Saturday. If you can, follow the directions in readme.txt to build the code and test with your encoder(s) and/or gyro and report any problems here. Thanks. -Kevin Edit: Code has been released and is available here: http://kevin.org/frc. -Kevin Last edited by Kevin Watson : 23-01-2008 at 14:55. |
|
#2
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Guy Davidson |
|
#3
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
New and edited link on the first page. Or, go to his web site. The full and simple versions are up.
|
|
#4
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Kevin,
Now that I enabled the ISR's (grin) everything works fine. No need to include sonar code this year as the MaxBotix sensors have an analog output. Last edited by Jon236 : 22-01-2008 at 15:07. Reason: Change of plans! |
|
#5
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
Hmmm i dont know what the issue was, (i did have ISR enabled) I just now recompiled the code and loaded it, no issues. Serial communications issue on the load... I dont know.
|
|
#6
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
Hello, this is my first year doing the programming on my team and we are having a very confusing problem. We are using an unmodified version of Kevins 2008 beta code with mplab v8 and c18 v3.1 and the code compiles fine and loads onto the robot fine, and it seems run on the robot, but the robot doesn't react at all. Its equally frustrating because when we load a copy of the 2007 code it works fine. It seems that no one else has had this problem (that I saw), though it seemed that Kevin referenced it in one of his posts.
Quote:
|
|
#7
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
With out any code that is going to be hard to help you with, are you in teleop mode? What code do you have in your teleop function?
|
|
#8
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
Code:
// map y-axis of the joystick on operator interface port #1 to the // motor controlled by the Victor 883 attached to PWM output #1 pwm01 = p1_y; // map y-axis of the joystick on operator interface port #2 to the // motor controlled by the Victor 883 attached to PWM output #2 pwm02 = p2_y; -Kevin |
|
#9
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Kevin,
Upgraded to the final 3.0 version....now I get a RLOD with just 1 encoder enabled.....what can produce this condition? |
|
#10
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
|
#11
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Nope.....I knew we were missing something!
Thanx! |
|
#12
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
Yeah, we got this same issue today when enabling another encoder. Maybe a comment next to the #define ENABLE_ENCODER_# is in order to remind people to enable the ISR in ifi_frc.h?
|
|
#13
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
Hi Kevin,
We keep on getting a error that ADC_CH0 is not defined. This happens when we try to use rc_ana_in_01. We looked in all of the header files including the complier file and could not find the definition but it is clearly used in ifi_frc.h.This might be a stupid error but please can someone help us. Thanks, Julan |
|
#14
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Julan,
Did you define the number of channels in the adc.h file? Kevin, The code runs fine if called ifi_frc.hex.....if I change the project in the same subdirectory with all the same files, I get a stuck programming mode light. So I won't every change the name, but I'd still like to know why this hapens!! Jon |
|
#15
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
Yes I Did
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Does the camera code suits to all versions of MPLAB and C18? | razer | Programming | 3 | 04-01-2007 14:50 |
| Trying to follow C18 interrupt context code... | dcbrown | Programming | 5 | 21-12-2006 09:01 |
| Error w/ FRC code | JamesBrown | Programming | 2 | 08-01-2005 16:17 |
| Programming code Fix FRC | Ferazel2001 | Programming | 6 | 08-02-2004 02:46 |
| FRC default code | hedgehogger | Programming | 2 | 21-01-2004 18:41 |