Go to Post Didn't you know? Kids today are born with GPS tracking systems installed so Mom's can look them up on Google Earth wherever they are and also know what they're doing for a living, eating the right foods and if they're dating the appropriate people. - 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, 17:48
SHerpich SHerpich is offline
Registered User
FRC #0909
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Lawrence
Posts: 3
SHerpich is an unknown quantity at this point
How should we call camera tracking functions during autonomous mode?

Where, or how, should we call the camera tracking functions to get the camera to track in autonomous mode? Calling the individual Servo_Track and Camera_Handler functions didn't work. We copied Process_Data_From_Master_uP, gave it a new name, commented out the call to Default_Routine, and called that from within User_Autonomous_Code and that didn't work either. We moved things around relative to the getdata and putdata statements, and even tried commenting some of them out, to no avail. The camera stops tracking as soon as it goes into autonomous mode. Any suggestions would be appreciated.
  #2   Spotlight this post!  
Unread 15-02-2006, 18:33
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: How should we call camera tracking functions during autonomous mode?

Our User_Autonomous_Code() looks like this:
Code:
  while (autonomous_mode)   /* DO NOT CHANGE! */
  {
		
    if (statusflag.NEW_SPI_DATA)      /* 26.2ms loop area */
    {
        Getdata(&rxdata);   /* DO NOT DELETE, or you will be stuck here forever! */
        Camera_Handler();
        Servo_Track();
The trick iss to look in Process_Data_From_Master_uP() to see what functions looked necessary and what order things were called in.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
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
camera in autonomous LightWaves1636 Programming 1 12-02-2006 00:20
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Receiving info from OI to select autonomous mode Mr. Lim Programming 21 17-02-2005 00:56
Autonomous With Camera schenkin Programming 20 16-02-2005 23:52
Programming Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32


All times are GMT -5. The time now is 09:08.

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