Go to Post You can build an amazing robot that is capable and beautiful on a limited budget. - Andy Baker [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
  #10   Spotlight this post!  
Unread 25-09-2003, 20:09
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Quote:
Originally posted by Tytus Gerrish
can i see an example in PBASIC please?
Well, the problem with that is that hardware and software are interdependant. I (or any fairly competent team programmer) could write you a program that takes the y-axis of the joystick on port 1 and maps it to the output(s) controlling the drive motor(s), and then takes the x-axis of the same joystick, and maps it to the output(s) controlling the rotational motor(s).

If you want a program ready to be slapped into an EduBot, I suggest you get in contact with 179's programmer(s), and get them to do this as a side project.

Fundamentally, though, here's how you would define the two variables which would be used to determine the four things in my previous post:
Code:
PWM1 = p1_y
PWM2 = p1_x
The default EduBot code uses some funky conventions concerning variable names and whatnot. They use the variables drive_L and drive_R, instead of PWM#.

But anyway, back to the topic at hand. Because of the actual structure of the Basic Stamp program, there're a lot of very important pieces of the program that, obviously, aren't included in the above excerpt.

Really, I suggest you find someone whom you can talk to in person about your system. Ambiguity of description isn't safe when programming robots, generally, and it's a lot easier to be clear and concise in real life, than online.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
 


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
rotation of body of crab drive robots michael_obrien Technical Discussion 6 22-10-2003 19:32
how does crab drive work? Soukup Technical Discussion 13 25-04-2003 11:31
Who is doing the programing for team 61 Walter_Jr Programming 5 25-01-2003 00:31
What is crab steering?? Adam Y. Technical Discussion 18 30-12-2002 08:12
Programing of controller DLyons Robotics Education and Curriculum 2 02-12-2002 00:16


All times are GMT -5. The time now is 13:12.

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