View Single Post
  #6   Spotlight this post!  
Unread 08-02-2006, 01:02
NextPerception NextPerception is offline
Sleep-Deprived
AKA: Matt
FRC #0437 (Richardson Robotics)
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2005
Location: Richardson, TX
Posts: 69
NextPerception has a spectacular aura aboutNextPerception has a spectacular aura aboutNextPerception has a spectacular aura about
Send a message via AIM to NextPerception
Re: Will camera keep running if i have a while statement going

wouldn't the last line in the final else statement break it out of the loop once it centers on the traget (the locked = 1). of course then i would still have the "Supervisor Uc" thing yall keep talking about to worry about so i guess it wouldn't work anyway....(not too mention the camera wont work in the loop Sorry for my confusion. I have programmed in a lot of other langauges besides C . I am just new to C and still trying to understand some of the stuff.


What if i put this code into the beginning of the while loop
Code:
Getdata(&rxdata);
Tracking_Info_Terminal();
Camera_Handler();
Servo_Track();
Putdata(&txdata);
also if i add a counter to 1000 and when it reached it it would run the program once but before it did it set a variable that had an if statement near the beginning of the run (but after "Supervisor Uc" checked) that put it back into the while loop. I hope i am not being to vague

it would almost be like making a super high priority interupt
__________________
What is this S - L - E - E - P you speak of?
Battlebots - My Robotics Website