Go to Post But should we "discriminate" based on how long your team has been around? If you think about it, FIRST's goal is to inspire students, right? ...But students on rookie and second-year teams, if anything, are in greater need of being inspired. - LauraN [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Spotlight this post!  
Unread 21-01-2008, 12:32
xrabohrok's Avatar
xrabohrok xrabohrok is offline
hunter of errors
FRC #1208 (The Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2006
Location: O'Fallon
Posts: 62
xrabohrok is an unknown quantity at this point
Re: Forgetful robot

I am using 2007 frc_serial_ports version of the code from kevin.org.

my modifications are as follows:

Code:
  pwm01 = joystick_values[p1_y];   
  pwm02 = joystick_values[p2_y];   
  pwm03 = joystick_values[p3_y];   
  pwm04 = 127; //p4_y;   
  pwm05 = 127; //p1_x;   
  pwm06 = 127; //p2_x;   
  pwm07 = 127; //p3_x;   
  pwm08 = 127; //p4_x;   
  pwm09 = 127; //p1_wheel;
  pwm10 = 127; //p2_wheel;   
  pwm11 = 127; //p3_wheel;   
  pwm12 = 127; //p4_wheel;
joystick_values is a 256 element global array with each element a value that the pwm should be in relation to the joystick value. We have been using that array the same way for 4 years (its kind of a hand me down).

The robot seems to go crazy at random now. It start and stop being crazy without loading the code.
__________________
"It's programming's fault" may be a viable excuse for just about everything, except the robot falling apart.

It will 'cause it can!

constants aren't. variables won't.
 


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
pic: 233 robot teaser, yep, theres our robot ; ) ducttapedude Extra Discussion 20 15-02-2007 22:02
Sony QRIO Robot = cool FVC robot! artdutra04 FIRST Tech Challenge 0 18-10-2005 16:55
pic: Team 114 Real Robot Vs. Inventor Robot James114 Robot Showcase 3 18-02-2005 13:02
Can an a robot take a tetra from another robot in their allinace? Koko Ed Rules/Strategy 3 10-01-2005 23:01
Robot Gallery from the 2003 robot expostion in Tokyo, Japan Andrew Rudolph Chit-Chat 1 04-12-2003 15:22


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

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