Go to Post The Chairman's award is about doing what you can to strengthen the FIRST community. It doesn't require money to simply lend tools, wise advice or a hand. - Koko Ed [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 15-02-2006, 20:29
TuaMater TuaMater is offline
Registered User
FRC #1895
 
Join Date: Jan 2006
Location: Manassas
Posts: 10
TuaMater is on a distinguished road
Autonomous Camera Stupidity

I have a feeling that this is a really really bad question, but I've checked all the FAQs twice and I haven't been able to fix it yet. I blame being a rookie.

How do we get the camera to start tracking in autonomous mode? When we get our controller to go to autonomous mode, our camera sits there doing nothing, but when we switch over to the main mode, we start searching fine. Is there some sort of initialization in user_routines_fast that needs to be added or are we missing something bigger here?
  #2   Spotlight this post!  
Unread 15-02-2006, 20:39
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Autonomous Camera Stupidity

Be sure to call Camera_Handler() and Servo_Track() in the User_Autonomous_Code() function in user_routines_fast.c
  #3   Spotlight this post!  
Unread 15-02-2006, 22:24
TuaMater TuaMater is offline
Registered User
FRC #1895
 
Join Date: Jan 2006
Location: Manassas
Posts: 10
TuaMater is on a distinguished road
Re: Autonomous Camera Stupidity

Yeah that's probably our problem, I'll check that out in tomorrow's meeting. Thanks for the response.
  #4   Spotlight this post!  
Unread 17-02-2006, 15:29
TuaMater TuaMater is offline
Registered User
FRC #1895
 
Join Date: Jan 2006
Location: Manassas
Posts: 10
TuaMater is on a distinguished road
Re: Autonomous Camera Stupidity

Okay I tried that and it didn't change anything. Essentially what happens is that when we stick it into autonomous mode, the camera doesn't seem to be getting any input from the PWMs, since I am able to move it manually, unlike normally when the code is running the servos will provide a good deal of resistance against realigning it with my hand. So I'm guessing there's some problem with it outputting to the PWMs 1 and 2.

Also, since our dongle isn't finished, we're sticking it into autonomous using team #0 and removing the tether. When we put the tether back in and reset, everything works fine. I don't know if the way we're sticking it into autonomous has anything to do with our problem, but I doubt it.

Anyone have any ideas? I'm gonna be here all night playing to see if the PWM outputs or lack thereof is the issue like I think it is.

EDIT: Tested this out. It seems for some reason that the PWM outputs are not going to the camera. I did a printf on the values going out of 1 and 2 and they coincide with the correct values for searching. So for some reason, when we start autonomous mode, the controller is not correctly sending out the PWMs to the camera.

EDIT #2: Problem fixed. It was a problem with removing the tether and putting it into autonomous that way. Once I set it to trigger autonomous through the joystick it worked just fine. Thanks again for the help.

Last edited by TuaMater : 17-02-2006 at 17:10.
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
How should we call camera tracking functions during autonomous mode? SHerpich Programming 1 15-02-2006 18:33
Camera shows no love to drive motors anifinder Programming 4 13-02-2006 10:31
camera in autonomous LightWaves1636 Programming 1 12-02-2006 00:20
Autonomous With Camera schenkin Programming 20 16-02-2005 23:52


All times are GMT -5. The time now is 01:34.

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