View Single Post
  #7   Spotlight this post!  
Unread 23-01-2004, 08:01
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Tracking and Beacon off of one Edu

Quote:
Originally Posted by Kevin Watson
This should work because the beacon, receiver and tracker code was developed on a single EDU-RC. I'll try to build it with the latest code and see it it works (or try to figure out what's broken).

-Kevin
It works.
I took the reverse tack and added the tracker to the beacon s/w just because I already had our printf replacements in it.
BEWARE: printf isn't included in this, but replacement print statements are.

PWM1 = beacon type 0
PWM2 = beacon type 1
The beacon digital switch is currently hardcoded to the beacon on PWM1
PWM7 = servo A
PWM8 = servo B
IR sensors are on interrupts 1,2 and 4,5 from an earlier version of Kevin's tracker code.

You have to build a new project. I stripped out the project files because they sometimes don't port to new machines well.

I'll probably use your idea in a workshop we're running for local teams on the IR beacon, sensors and s/w.

[edit]
I left the wrong print statements in tracker.c. It's fixed now. It didn't affect execution of the code only the printout of the diagnostic messages.
[/edit]
Attached Files
File Type: zip EduBeaconTracker.zip (46.7 KB, 45 views)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-01-2004 at 19:14.