Go to Post What I want is to ultimately make it so that the programming is actually done before the robot is finished. Imagine that! - Danny Diaz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2007, 17:18
Brigander's Avatar
Brigander Brigander is offline
Website Wizard
AKA: Andrew Roberge
FRC #1723 (F.B.I)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Independence, MO
Posts: 9
Brigander is an unknown quantity at this point
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?
__________________
Only those who do not try are doomed to fail.
  #2   Spotlight this post!  
Unread 29-01-2007, 22:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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   Spotlight this post!  
Unread 29-01-2007, 22:17
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
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.
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
  #4   Spotlight this post!  
Unread 30-01-2007, 00:44
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
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.
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)
  #5   Spotlight this post!  
Unread 30-01-2007, 08:15
Brigander's Avatar
Brigander Brigander is offline
Website Wizard
AKA: Andrew Roberge
FRC #1723 (F.B.I)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Independence, MO
Posts: 9
Brigander is an unknown quantity at this point
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.
__________________
Only those who do not try are doomed to fail.
  #6   Spotlight this post!  
Unread 30-01-2007, 08:20
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Problem with Modified Code

Quote:
Originally Posted by Brigander View Post
The code loads but does not run... so you are saying that it might be a Getdata error? I will try this.
It comes down to this... What did you change?
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #7   Spotlight this post!  
Unread 30-01-2007, 08:24
65_Xero_Huskie's Avatar
65_Xero_Huskie 65_Xero_Huskie is offline
One T
AKA: Mat
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Michigan
Posts: 697
65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute
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.
__________________
Min-Max to the Max!
  #8   Spotlight this post!  
Unread 30-01-2007, 08:25
Brigander's Avatar
Brigander Brigander is offline
Website Wizard
AKA: Andrew Roberge
FRC #1723 (F.B.I)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Independence, MO
Posts: 9
Brigander is an unknown quantity at this point
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;
__________________
Only those who do not try are doomed to fail.
  #9   Spotlight this post!  
Unread 30-01-2007, 08:28
65_Xero_Huskie's Avatar
65_Xero_Huskie 65_Xero_Huskie is offline
One T
AKA: Mat
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Michigan
Posts: 697
65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute65_Xero_Huskie has a reputation beyond repute
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.
__________________
Min-Max to the Max!
  #10   Spotlight this post!  
Unread 30-01-2007, 08:45
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
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   Spotlight this post!  
Unread 30-01-2007, 08:54
Brigander's Avatar
Brigander Brigander is offline
Website Wizard
AKA: Andrew Roberge
FRC #1723 (F.B.I)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Independence, MO
Posts: 9
Brigander is an unknown quantity at this point
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>"
__________________
Only those who do not try are doomed to fail.

Last edited by Brigander : 30-01-2007 at 11:09.
  #12   Spotlight this post!  
Unread 30-01-2007, 21:18
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Problem with Modified Code

Quote:
Originally Posted by Brigander View Post
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;
Andrew,

You changed something else. Try running windiff to compare default and modified source code files.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #13   Spotlight this post!  
Unread 31-01-2007, 08:20
Brigander's Avatar
Brigander Brigander is offline
Website Wizard
AKA: Andrew Roberge
FRC #1723 (F.B.I)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Independence, MO
Posts: 9
Brigander is an unknown quantity at this point
Re: Problem with Modified Code

what is windiff? where can I find it?
__________________
Only those who do not try are doomed to fail.

Last edited by Brigander : 31-01-2007 at 08:35.
  #14   Spotlight this post!  
Unread 31-01-2007, 09:02
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Problem with Modified Code

Quote:
Originally Posted by Brigander View Post
what is windiff? where can I find it?
A google search yields many references including this.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #15   Spotlight this post!  
Unread 31-01-2007, 13:25
Brigander's Avatar
Brigander Brigander is offline
Website Wizard
AKA: Andrew Roberge
FRC #1723 (F.B.I)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Independence, MO
Posts: 9
Brigander is an unknown quantity at this point
Re: Problem with Modified Code

ok i think the issue is resolved. thanks for all the advice.
__________________
Only those who do not try are doomed to fail.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 23:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi