|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Problem with Modified Code
Whenever I try to upload modified code to our robot controller, it refuses the modified code. but when i try the default code it works fine. can anyone help me figure out a solution to this?
|
|
#2
|
|||||
|
|||||
|
Re: Problem with Modified Code
Can you be more specific? "Refuses the modified code" is a nice turn of phrase, but it doesn't say much about what is happening.
|
|
#3
|
|||
|
|||
|
Re: Problem with Modified Code
Define "refuses." If the code loads all the way, but does not run (code error), then make sure you are calling Getdata/Putdata and not getting stuck in an infinite loop. If the user processor cannot communicate with the master processor (by means of Getdata/Putdata) then the code will not run at all.
|
|
#4
|
|||
|
|||
|
Re: Problem with Modified Code
I find the same problem happens if you try to upload for the wrong processor.
Make sure if you are working with the full size controller, you're setup to work with the new (18F8722 iirc) processor. |
|
#5
|
||||
|
||||
|
Re: Problem with Modified Code
The code loads but does not run... so you are saying that it might be a Getdata error? I will try this.
|
|
#6
|
||||
|
||||
|
Re: Problem with Modified Code
It comes down to this... What did you change?
|
|
#7
|
||||
|
||||
|
Re: Problem with Modified Code
If you post part of the code u changed, im sure the "Pro"grammers on here can help you with your problems. Turst me, ive seen it done before.
|
|
#8
|
||||
|
||||
|
Re: Problem with Modified Code
I only changed the inputs for the PWM outputs... made it so that you use two joysticks to drive with
analog inputs to pwm outputs pwm01 = p1_y; pwm02 = p1_y; pwm03 = p2_y; pwm04 = p2_y; pwm05 = p1_x; pwm06 = p1_x; pwm07 = p2_x; pwm08 = p2 _x; pwm09 = p1_wheel; pwm10 = p2_wheel; pwm11 = p3_wheel; pwm12 = p4_wheel; |
|
#9
|
||||
|
||||
|
Re: Problem with Modified Code
I remembered when we switched our program to run a 360 controller, all of our PWMs were out of order so we had to imput the correct PWMs into the code, maybe you dont have the correct pwms set up for what you need to drive.
|
|
#10
|
|||||
|
|||||
|
Re: Problem with Modified Code
I think there's a typo:
pwm08 = p2 _x; it's pwm08 = p2_x; But I think he rewrote the whole code into the post and accidently typed space there. Ah, ok. What did you plug in to what PWM output? |
|
#11
|
||||
|
||||
|
Re: Problem with Modified Code
only tested the first 4 pwm ports for the motors nothing was hooked into 5-12 at the time
more description... when i load non-default code all i get in the terminal window is "IFI>" Last edited by Brigander : 30-01-2007 at 11:09. |
|
#12
|
||||
|
||||
|
Re: Problem with Modified Code
Quote:
You changed something else. Try running windiff to compare default and modified source code files. Mike |
|
#13
|
||||
|
||||
|
Re: Problem with Modified Code
what is windiff? where can I find it?
Last edited by Brigander : 31-01-2007 at 08:35. |
|
#15
|
||||
|
||||
|
Re: Problem with Modified Code
ok i think the issue is resolved. thanks for all the advice.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Modified default code gives "code violation" | scottmso | Programming | 8 | 10-02-2006 23:17 |
| problem loading code with ifi loader | psych0gambit | Programming | 7 | 25-02-2005 20:43 |
| problem with the default code | MarkVH | Programming | 7 | 28-01-2005 00:04 |
| Problem with FRC Default code | AsimC | Programming | 2 | 11-01-2004 19:22 |
| One final fairly massive problem with the code... | authgeek1218 | Programming | 5 | 19-02-2003 16:51 |