|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Adding Code
In the Process Data From Master uP section with the camera code, where do you add your out codes?
|
|
#2
|
|||
|
|||
|
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().
|
|
#3
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |