|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#241
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
This is probably one of the big things to watch for, even for experienced programmers. The MPLAB/PIC18 platform (and embedded platforms in general) are a lot less tolerant of type mismatches than your usual programming.
|
|
#242
|
||||
|
||||
|
Quote:
"Procrastination mode" I wonder if FIRST will use that to replace Hybrid mode next year? |
|
#243
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Well, in the past, the difference wouldn't be very noticeable...
|
|
#244
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
|
#245
|
||||
|
||||
|
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. |
|
#246
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
Kevin,
In your gyro initialization code in teleop.c, you have two static ints that you use as counters. (i, j) You increment both every time through the function. When you wish to print out the gyro you have the following: Code:
if(i == 35 && j >= 300) Code:
if(j == 300) Code:
if(==35 && i >= 300) |
|
#247
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
|
#248
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
In the README.TXT, in the section to enable the ISR's in ifi_frc.h, (bullet # 3)the description is misleading, or the file is incorrect.
Quote:
Code:
// #define ENABLE_INT_1 // enable if using encoder channel 1 // #define ENABLE_INT_2 // enable if using encoder channel 2 // #define ENABLE_INT_3 // enable if using encoder channel 3... |
|
#249
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
Code:
// Remove the comment slashes from one or more of the following lines to // enable the respective external interrupt(s) and/or timer(s). By doing // so, you only enable the code within ifi_frc to become part of your // software build. // #define ENABLE_INT_1 // enable if using encoder channel 1 // #define ENABLE_INT_2 // enable if using encoder channel 2 // #define ENABLE_INT_3 // enable if using encoder channel 3 // #define ENABLE_INT_4 // enable if using encoder channel 4 // #define ENABLE_INT_5 // enable if using encoder channel 5 // #define ENABLE_INT_6 // enable if using encoder channel 6 -Kevin |
|
#250
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
I just saw the answer in encoder.c.
Sorry for the confusion. My bad. I hate it when I misinterpret instructions like that. Oh well, blame it on sleep deprivation. ![]() Last edited by billbo911 : 18-01-2008 at 16:54. |
|
#251
|
|||
|
|||
|
Re: New C18 3.0+ Compatible FRC Code
Is it recommended to use this code over the default, or should teams wait to use until it's out of its beta stages?
|
|
#252
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Kevin,
what changes should be made to the Vex C templates to run under 3.10? I'm getting library errors. |
|
#253
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Quote:
-Kevin |
|
#254
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Can we use MPlab 8.0 to use 3.10 to compile? I need to know Because I cant find 7.21
|
|
#255
|
||||
|
||||
|
Re: New C18 3.0+ Compatible FRC Code
Yes. That's the exact setup I'm using.
|
![]() |
| 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 |