Go to Post FRC is a big tent. There's room for everybody. - Ether [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

 
View Poll Results: What is your autonomous mode strategy?
Line-tracking 23 38.98%
Dead-reckoning 37 62.71%
Seek-Enemy-Stack-and-KILL!!! 14 23.73%
Other - please list. 15 25.42%
Multiple Choice Poll. Voters: 59. You may not vote on this poll

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #27   Spotlight this post!  
Unread 22-01-2003, 09:50
Jeff McCune's Avatar
Jeff McCune Jeff McCune is offline
Alpha Geek
#0677 (The Wirestrippers)
Team Role: Mentor
 
Join Date: Jan 2003
Location: The Ohio State University
Posts: 67
Jeff McCune is on a distinguished road
Send a message via ICQ to Jeff McCune Send a message via AIM to Jeff McCune
My bad. The original compass we were looking at is the CMPS03 Not the CSMP03. Sorry about that.

Quote:
Are you getting bytes through reliably via parallel? I'm hearing a lot of horror stories about how since the I/O PIC and the RC are asynchronous, some people are getting funny values every so often because one nybble may be old data, and another the new one.
Yeah, we are. You just have to be smart about how you send data from your custom circuit to the RC. I ended up defining a word of memory on the Stamp-2P called bus, which logically represents the state of the bus between the 2P and the RC. I can muck around with the bus variable all I want, but I have a subroutine on the 2P called SENDPACKET, which takes the current state of bus, and outputs it to the 16 output pins wired to the RC all in one shot. I can very easily turn off interrupts at the begining of this subroutine, and re-enable them at the end, which will ensure our shaft encoders aren't constantly interrupting the communication between the 2P and the RC. Finally, I'm very careful about how often I call the SENDPACKET subroutine, as to not spend too much time with interrupts off.

Doing all that, it seems to work perfectly fine between the RC and the 2P. The only weird values I've gotten have been a result of my own stupidity. (Having outputs defined as inputs, etc...) <g>
__________________
Team 677 - The Wirestrippers - Columbus School for Girls and The Ohio State University
EMAIL: mccune@ling.ohio-state.edu

...And all you touch and all you see
Is all your life will ever be...

Last edited by Jeff McCune : 22-01-2003 at 09:59.
 


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 Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11
Autonomous mode AntmanIV General Forum 1 17-02-2003 13:30
autonomous mode timer Don Programming 6 09-02-2003 22:16
autonomous mode? bigwalt Technical Discussion 1 21-01-2003 01:14


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

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