Go to Post This is a very cool robot. It doesn't look like a launcher... it looks like a lifter driving backwards. Then whammo! The ball is flying through the air. - dtengineering [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 17-01-2006, 21:32
haywirerobotics haywirerobotics is offline
Registered User
FRC #1569 (Haywire)
 
Join Date: Jan 2006
Location: Pocatello, Idaho
Posts: 43
haywirerobotics is on a distinguished road
Adding Code

In the Process Data From Master uP section with the camera code, where do you add your out codes?
__________________
Haywire Robotics...
KISS
(Keep It Simple Stupid!)
  #2   Spotlight this post!  
Unread 17-01-2006, 21:44
Jake M Jake M is offline
void* Jake;
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Missouri
Posts: 118
Jake M has a spectacular aura aboutJake M has a spectacular aura about
Re: Adding Code

Out codes? Did you mean to say 'own'? And if so, what kind of codes do you mean? If you mean code that adjust your robot's position based on the camera data, you could either work it into the Servo_Track() routine, or, if you feel daring, you could write your own routine based on Servo_Track(). Or again, you could get rid of the Servo_Track() function and put the code straight into Process_Data_From_Master_uP, after Camera_Handler().
__________________
Code:
void function(void)
 {
  function();
 }
  #3   Spotlight this post!  
Unread 18-01-2006, 07:04
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Adding Code

Generally, you'll be adding code the the end of Process_Data_From_Master_uP(), but before the call to putdata(). The nicest way to do this is to define new functions and call them, but you can add actual working code without doing that if you feel the need.
__________________

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
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Code suddenly fails to initialize miketwalker Programming 11 19-02-2005 15:23
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
Adding a motor to code sirbleedsalot Programming 1 27-01-2005 23:02
heres the code. y this not working omega Programming 16 31-03-2004 15:18


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

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