|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Problem with Kevin's 2008 code
Hello,
We used to have the 2007 code from IFI's site in our controller, and it worked fine. Now, I have upgraded to Kevin's 2008 code, along with upgrading our MPLAB (7.21), and MCC (3.1). When we put the compiled version of the 2008 code in the controller, all the code we have works except the controller code. Meaning when we make code in our autonomous.c be "pwmwhatever = 255", it works, but the p1_y = pwmwhatever code does not. The controller code works if we use the old compiled hex of the 2007 code, so it can't really be a hardware problem. Has anyone encountered this before, or does anyone have any suggestions? |
|
#2
|
|||||
|
|||||
|
Re: Problem with Kevin's 2008 code
Assignments in C work from right to left (i.e. take the value on the right side of the '=' and store it into the variable on the left of the '=').
In which case your code should look like Code:
pwmXX = pX_y; |
|
#3
|
||||
|
||||
|
Re: Problem with Kevin's 2008 code
Quote:
.-Kevin |
|
#4
|
|||
|
|||
|
Re: Problem with Kevin's 2008 code
edit:
Turned out I had something commented out in the teleop.c and now that I uncommented it works perfectly. Thanks Kevin, you're magic ![]() Last edited by jc4p : 06-02-2008 at 17:46. |
|
#5
|
||||
|
||||
|
Re: Problem with Kevin's 2008 code
Quote:
.-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with 2008 gear tooth sensor | Larry R | Sensors | 27 | 18-02-2008 11:39 |
| Need help in Kevin's 2008 default code | robotrobot2 | Programming | 5 | 20-01-2008 14:36 |
| Problem with Kevin's code | Tottanka | Programming | 5 | 04-11-2007 13:32 |
| Problems with Kevin's 2007 default code | bruss6 | Programming | 8 | 19-01-2007 15:42 |
| What are with the Ls in Kevin's code??!!! HELP!!! | RbtGal1351 | Programming | 2 | 18-02-2005 16:57 |