Go to Post I'm basically only posting this so that future Shaker Robotics kids will see it and tell themselves "never again"... - Chris is me [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 10-02-2007, 19:14
dpick1055's Avatar
dpick1055 dpick1055 is offline
David Pick
FRC #1739 (Chicago Knights)
Team Role: Alumni
 
Join Date: May 2005
Rookie Year: 2004
Location: Chicago
Posts: 75
dpick1055 is on a distinguished road
Send a message via AIM to dpick1055
Getting the camera to work in autonomous

I've now got the camera working in human operated mode but when we switch over to autonomous nothing happens. I've also included tracking.h in user_routines_fast.c, Our code currently looks something like this:
Code:
Getdata(&rxdata);  
Camera_Handler();
Servo_Track();

if (Get_Tracking_State == TARGET_IN_VIEW)
    {
      pwm13 = pwm15 = 170;
    }
else
    {
      pwm13 = pwm15 = 127;
     }

Generate_Pwms(pwm13,pwm14,pwm15,pwm16);

Putdata(&txdata);
I was simply trying to see if i could get the motors to respond to what the camera was seeing. Is there some reason why this isn't working?
__________________
Always remember to take your powered wheels off the ground when first testing code. Otherwise you'll end up with holes in the wall like us
 


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
Getting the Camera out of Idle Eclipse Programming 2 13-02-2007 04:06
Camera did not work for well at the regionals, but worked great at home. Alan Ing Programming 12 17-04-2006 17:43
even simple autonomous code doesn't work?? colman77 Programming 4 17-02-2006 23:58
Getting the Camera and Default Code to Work nukem Programming 5 18-01-2006 11:48
Anyone get Autonomous mode to work? Larry Barello Control System 4 13-01-2004 15:15


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

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