![]() |
Re: CMUCam and autonomous code
Please help me, I can't figure out how to use the camera to actually MOVE the robot. I have the camera code working along with the camera itself, but how do I move pwm01 (left drive wheel) and pwm02 (right drive wheel) individually according to the pan of the camera? I have no idea where to begin with this code. (I just got the code to work for the camera and I've been trying for weeks. Now I only have 2 days, Please help if you can)
|
Re: CMUCam and autonomous code
Quote:
In theory, all you need to do is write some software to read the camera tracking information and control the motors the same way you would do it with your hands. The details are up to you. |
Re: CMUCam and autonomous code
Here's what I have so far
Code:
Code:
unsigned int Find_Distance(void)Code:
const rom unsigned int targetRange[] =Code:
if((Get_Tracking_State() == CAMERA_ON_TARGET) || (Get_Tracking_State() == TARGET_IN_VIEW)) |
Re: CMUCam and autonomous code
by the way...pwm01_On_Off maps pwm01 to the p1_y joystick. (same with 2) So if its 1, it maps it so the joystick functions. If its not 1 then the joystick cannot function so the camera will take control of pwm01 and pwm02.
|
Re: CMUCam and autonomous code
you just need to tighten up the code a bit
|
| All times are GMT -5. The time now is 00:24. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi