Go to Post the FIRST season is never over . . it just pauses a while so you can get some sleep. - Stuart [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-11-2003, 10:01
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
The sequence is as follows:

1. PC sends 1 arbitrary byte to tell the RC to get ready to receive.
2. RC sends back 1 byte and waits for 8 bytes in the receive buffer.
3. RC sends its data packet back.

The baud rate matches the default that IFI uses, which is 19200, 8 bits, no parity, one stop bit.

Write your PC client so that it reads the joystick and sends one byte to the RC. On the RC side, just grab the value in the recieve buffer whenever data is waiting and write it to a PWM output with a servo attached. Once you get that working add the rest. You have to make sure that the code running on the PC during step 2 is tight enough that the RC isn't sitting there waiting.

The program is written in VB 6.0 with the MSCOMM control as the serial interface. I'll make the source available when I have time to clean it up.
Reply With Quote
Reply


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
White Paper Discuss: Using an Operator Interface with the 2004 EDU RC CD47-Bot Extra Discussion 6 20-01-2004 21:11
Some code in C that we may need if we are in trouble Andrew Rudolph Chit-Chat 16 07-10-2003 21:34
serious problem found - robot controller resets when jarred! KenWittlief Electrical 23 19-03-2003 13:30
Controlling a FIRST robot with a Lego RCX Controller? archiver 2001 5 24-06-2002 04:19


All times are GMT -5. The time now is 16:21.

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