Go to Post Andy Grady does a great job of running the WayBack machine for us new to FIRST. - Foster [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-02-2004, 20:45
Gusman1188 Gusman1188 is offline
Registered User
FRC #0870
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1930
Location: S
Posts: 43
Gusman1188 will become famous soon enoughGusman1188 will become famous soon enough
IR code

Ok, so we put the sensors on rc dig in 1, 2, 4, 5 and servos on 1 & 2.
Then the drives on 13 and 15.
Uploaded navigate.zip and..........pwm03 fires at 72 whether auton is enabled or not and the servos do not do anything unless you reset and they twitch a little....any help would be appreciated.
__________________
Team R.I.C.E. 870

2006 SBPLI Regional Winner
2006 SBPLI Imagery Award
2005 SBPLI Regional Winner
2004 SBPLI Xerox Creativity
2003 SBPLI Regional Winner
2003 CT J&J Sportsmanship
2003 SBPLI KPC&B Entrepenuership
2002 SBPLI Rookie All-Star
  #2   Spotlight this post!  
Unread 24-02-2004, 21:31
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: IR code

a) navigate.zip is designed just to run, it's not set up to be only running in autonomous mode (you have to do that yourself)

b) if I remember correctly, the IR sensors go on ports 3,4,5, and 6, starting with the left-most and ending with the right-most.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #3   Spotlight this post!  
Unread 24-02-2004, 21:36
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: IR code

Quote:
Originally Posted by Gusman1188
Ok, so we put the sensors on rc dig in 1, 2, 4, 5 and servos on 1 & 2.
Then the drives on 13 and 15.
Uploaded navigate.zip and..........pwm03 fires at 72 whether auton is enabled or not and the servos do not do anything unless you reset and they twitch a little....any help would be appreciated.
If you are using navigate.c as-is then it's waiting for you to hit one of the joystick buttons (p1 trigger).

Your hook-ups seem to be correct.

It needs to be modified to be used in competition.
It was talked about here [thread]24631 [/thread]
In addition to those instructions you'll also need the navigate.c and navigate.h files, and you'll need to add a call to navigate() to the User_Autonomous_Code() routine in the user_routines_fast.c file.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 24-02-2004 at 21:47.
  #4   Spotlight this post!  
Unread 24-02-2004, 22:58
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: IR code

Quote:
Originally Posted by Gusman1188
Ok, so we put the sensors on rc dig in 1, 2, 4, 5 and servos on 1 & 2.
Then the drives on 13 and 15.
Uploaded navigate.zip and..........pwm03 fires at 72 whether auton is enabled or not and the servos do not do anything unless you reset and they twitch a little....any help would be appreciated.
Read the FAQ, Luke (Okay, okay, so I saw Star Wars a few too many times).

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Closed Thread


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
What is your most prefered programming language? Hailfire Programming 156 19-01-2005 21:42
Interrupt timer, executing code asap? SeanCassidy Programming 10 07-03-2004 01:47
Operator Interface code RiotingNerd Programming 5 07-02-2004 21:13
Inserting Naviagation code into Default code? actorindp Programming 3 28-01-2004 18:12
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46


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

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