![]() |
Programming for CMUCam
Hey quick question..
To stop the Servo_Track(); from tracking.. could i just say Tracking_Initialized = 0; to stop it? |
Re: Programming for CMUCam
You can just not call the function..
if (track_enabled == 1) { Servo_Track(); } |
Re: Programming for CMUCam
Remember that the robot runs on a continuos loop. So instead of stopping it, you just need to not call in on they next loop if you dont want it to be running.
|
Re: Programming for CMUCam
Quote:
|
Re: Programming for CMUCam
Dont call Servo_trace in you user_routine when you dont want it to run. Say you only want it to run when switch_1 is on then it would look like this
PHP Code:
|
Re: Programming for CMUCam
Quote:
Code:
// This function reads data placed in the T_Packet_DataCode:
if((tracking_menu_active == 0)&&(whatever condition you want here))Code:
if((tracking_menu_active == 0)&&(jbotRulesTheWorld == 1))Code:
if(tracking_menu_active == 0)JBot (rules the world...:) ) EDIT: Oh, well Chris31 beat me to it. I'll still leave this post here for clarity. |
Re: Programming for CMUCam
found an easier way .... i'll just declare Camera_Idle(); ... that'll stop everything that its trying to track.. but thxs alot for ur help:)
|
| All times are GMT -5. The time now is 01:21. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi