Go to Post "It's not a weapon, it's an active bumper system." - Ameya [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
  #2   Spotlight this post!  
Unread 23-01-2003, 22:07
srawls's Avatar
srawls srawls is offline
Registered User
#0122 (Nasa Knights)
 
Join Date: Dec 2001
Location: Yorktown
Posts: 507
srawls is an unknown quantity at this point
Send a message via AIM to srawls
Hmmm ... what I would do is keep the robot tethered up, and debug some values. Assuming you call your motor outputs driveL and driveR, put something like this in the bottom of your code:
Code:
debug ? p1_x
debug ? p1_y
debug ? driveR
debug ? driveL
debug "Filler Text"
debug cls
Then, run the robot and don't touch the joystick (keep it centered). Adjust the trim (the right and bottom wheels) until you see p1_x and p1_y are close to 127. Then Tape the trim down, so it doesn't move. If you move the joystick, then it goes to center, and the p1_x/p1_y don't say 127, then you've got a problem with your joystick. If p1_x/p1_y do say 127, but driveR/driveL don't, then there is a problem with your code (unlikely since it is the default code). If they all say 127 but the wheels are still moving, then you've got a real problem! (in that case, check the wiring to make sure it's all correct, and the pwm cables go to the right number that the serout command expects).

Sorry I can't be of more help, but I haven't had this problem before, so I don't know what to say.

Stephen

PS. Kind of obvious, but just in case: when you do this testing, make sure you set your robot up on some blocks so the wheels can move freely without contacting the ground.
 


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
How much planning goes into your robot? Jnadke General Forum 41 29-01-2006 21:29
Default Robot Code lvhsrobotics Programming 2 10-01-2003 16:55
WASH Palm scouting at the Championship Mike Soukup Scouting 2 19-04-2002 15:14
Rookie Programmer has question about the default code DanL Programming 3 26-01-2002 19:59
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39


All times are GMT -5. The time now is 04:57.

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