Go to Post It is going to be a water game. Sorry, I thought everybody knew that. :ahh: - FrankJ [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-2005, 19:12
NotQuiteFree's Avatar
NotQuiteFree NotQuiteFree is offline
Do the WAAAAVE!!
#0957 (Watson)
Team Role: Programmer
 
Join Date: Dec 2003
Location: Albany, Oregon
Posts: 22
NotQuiteFree will become famous soon enough
Send a message via MSN to NotQuiteFree
Exclamation Strange Auto Problem

Hey all,
Whenever activate autonomous mode, the robot's left side motors spin, and no matter what I try, nothing seems to stop them. Also, it appears that that is the only side that I can drive in auto mode, because whenever I try to drive the other side (by itself), it doesn't move. We've checked the electrical system, and it is all hooked up correctly, so do you have any suggestions? Any help would be appreciated.


-Nick
__________________
Yo.
  #2   Spotlight this post!  
Unread 29-01-2005, 19:36
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Strange Auto Problem

Are you using PWM13-16? Those outputs have some idiosyncracies, so I try to avoid them altogether. Without being able to see your code, I would guess that either you deleted the call to Generate_Pwms(), or there's something else that is affecting those PWMs (lengthy interrupt handlers, perhaps).
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #3   Spotlight this post!  
Unread 29-01-2005, 19:59
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,277
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Strange Auto Problem

If you post your auto code and the code where you map your joysticks to pwms one of us can probably find the problem, without them is may be a shot in the dark.
  #4   Spotlight this post!  
Unread 30-01-2005, 18:22
NotQuiteFree's Avatar
NotQuiteFree NotQuiteFree is offline
Do the WAAAAVE!!
#0957 (Watson)
Team Role: Programmer
 
Join Date: Dec 2003
Location: Albany, Oregon
Posts: 22
NotQuiteFree will become famous soon enough
Send a message via MSN to NotQuiteFree
Re: Strange Auto Problem

jgannon: So, I moved the pwm cables from 13-16 and placed them on 3-6 (just to choose a set of numbers), and the problem was the same. I hadn't deleted the Generate_Pwms line, and I'm not using interrupts. Also, the motors have a bizzare behavior. No matter what pwm I plug the speed controllers into, the left side motors spin. I have tried everything I can think of to get them to stop, but they WON'T. I am at my wit's end.

JamesBrown: The code I am using is the code provided on the Innovations FIRST website. I haven't changed anything except what pwm's to output to, and as I said above, even if I run the default code with pwm11 and 12 or whatever, the motors still spin, and I am back at square one.
__________________
Yo.
  #5   Spotlight this post!  
Unread 30-01-2005, 18:49
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,277
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Strange Auto Problem

Ok try this plug the motors into pwms 1 and 2 left into 1 and right into 2.
Add this to define t

static unsigned int t;
then paste this into user routines fast where is says add your autonomous code here,
t++;

if (t < 5)
{
pwm01 = 127;
pwm02 = 127;
pwm03 = 127;
pwm04 = 127;
}

else if (t < 179)
{
pwm01 = 254;
pwm02 = 0;
pwm03 = 254;
pwm04 = 0;
}
else if (t < 353)
{
pwm01 = 0;
pwm02 = 254;
pwm03 = 0;
pwm04 = 254;
}
else
{
pwm01 = 127;
pwm02 = 127;
pwm03 = 127;
pwm04 = 127;
}

then run the bot in autonomous. It should move forward and then backwards, If this works than try using joysticks in ports 1 and 2 to control the two sides of the drive, assign them to PWMs like this,

pwm01 = (p1_y/2)+64;
pwm02 = ((254-p2_y)/2)+64;

port 1 should drive left side and port two should drive the right.

If this all works then there shouldnt be a problem if it doesnt you have a few choices, first choice redownload the default code version 2.4 and try again, Upload your code for some one on here to look at, Your problem could be a misplaced / of a missing value. Or your thid choice double check your wiring and make sure your victors are set up properly.

James
  #6   Spotlight this post!  
Unread 20-02-2005, 01:29
Nate Edwards Nate Edwards is offline
SWARM Head Mentor
FRC #0957 (SWARM)
Team Role: Mentor
 
Join Date: Dec 2002
Rookie Year: 2002
Location: Albany
Posts: 201
Nate Edwards will become famous soon enough
Re: Strange Auto Problem

We at WATSON are proud to say our Auto mode works now, well at least better then it did when NotQuiteFree, our programmer, posted this. The reason the left side was moving was the pwm neutral count was off by 12 (it didn't stop unless one side was 139 and the other 115.) I am not sure why it was doing that but, the problem was solved and we had a good showing at our Scrimmage today. Thanks to all who helped

Nate Edwards
__________________
South West Albany Robot Mechanics


2002 Pacific NW Regional Rookie All Star Award Winners
2003 Pacific NW Regional Daimler Chrysler Team Spirit Award Winners
2004 Pacific NW Regional Johnson & Johnson Sportsmanship Award Winners
2004 Pacific NW Regional Winning Alliance (492 (#1 Seed), 1031, 957)
2003 & 2005 Pacific NW Regional Chairman's Award Winners
2009 Oregon Regional Woodie Flowers Award Winner
  #7   Spotlight this post!  
Unread 20-02-2005, 17:12
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Strange Auto Problem

Quote:
Originally Posted by Nate Edwards
The reason the left side was moving was the pwm neutral count was off by 12 (it didn't stop unless one side was 139 and the other 115.) I am not sure why it was doing that but, the problem was solved and we had a good showing at our Scrimmage today.
It sounds to me like your Victors are miscalibrated. I would suggest reading the Victor user guide, and using the recalibration method suggested therein.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
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
Programming Problem: Extremely Frustrating chantilly_team Programming 19 12-02-2005 23:00
Physics Problem Venkatesh Math and Science 13 30-11-2004 20:30
Ok one problem cantwell03 Programming 3 13-02-2003 07:28
The problem with scouting... archiver 2001 10 23-06-2002 23:49
Major problem with chipphua motors aka Scott White Motors 18 19-03-2002 19:44


All times are GMT -5. The time now is 02:47.

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