Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   CmuCam problem (http://www.chiefdelphi.com/forums/showthread.php?t=42055)

Zoom 17-01-2006 16:53

CmuCam problem
 
Our cmucam does not track the target. We got the code from kevin's site. download it to the rc. did everything. I searched before posting but couldnt find any answers. cam just stays there. The lights are green. what could be the problem?

Mark McLeod 17-01-2006 17:28

Re: CmuCam problem
 
Quote:

Originally Posted by Zoom
Our cmucam does not track the target. We got the code from kevin's site. download it to the rc. did everything. I searched before posting but couldnt find any answers. cam just stays there. The lights are green. what could be the problem?

  • Servos are hooked up to pwm01 & 02?
  • Camera power is connected by PWM cable to an empty RC PWM output?
  • PWM cable is attached to the camera serial port and the RC via TTL converter?
  • Backup battery is connected to the RC and fully charged?
  • 12v battery is hooked up to the RC and fully charged?
  • OI is tethered or linked by radio to the RC and powered?
  • Green power LED on the camera power is on?
Can you call up Kevin's tracking and camera menus?
Did you test separately with Labview?

railerobotics 17-01-2006 17:32

Re: CmuCam problem
 
We are having the exact same problem and we can access the camera and tracking menus but the terminal window never display's searching. We have a red and green light lit up on our camera.

Zoom 17-01-2006 19:11

Re: CmuCam problem
 
when you say pwm 1,2. do you mean the robot controller. if yes. then yes the pwm are in 1 and 2. the power is also good. we checked in labview. it works fine there. but when we use the robot. it does not work. After uploading the code to rc nothing happens in the terminal window.
Can you call up Kevin's tracking and camera menus? sorry, dont what you mean. maybe this is the part im lost at.

railerobotics 17-01-2006 19:16

Re: CmuCam problem
 
To get the tracking menu you type "t" at the bottom of the terminal window.
To get the camera menu you type "c" at the bottom of the terminal window.
You'll probably have to reset the robot after you download the code. If you get no response in the terminal window try resetting the robot.

mallot1243 17-01-2006 19:18

Re: CmuCam problem
 
I'm assuming that you chose the pwm01 and 02 on the rc and not the jumpers on the camera itself. Also, the default code from Kevin's files are too large to fit in the EduBot Controller, is there a special file for using on the Edu or do I have to commit a hack job on the code to lighten it?
And whoever came up with the idea of only writing the LabView program for Windows 2001 SP1 or higher?

Kevin Watson 17-01-2006 19:36

Re: CmuCam problem
 
Quote:

Originally Posted by mallot1243
Also, the default code from Kevin's files are too large to fit in the EduBot Controller, is there a special file for using on the Edu or do I have to commit a hack job on the code to lighten it?

The code was developed on a EDU-RC. What makes you think it won't fit?

-Kevin

mallot1243 17-01-2006 19:38

Re: CmuCam problem
 
My compiled version with other small tidbits of code was nearly 500Kb, when I exported it I used 0x800, would I have to change this?

Kevin Watson 17-01-2006 19:43

Re: CmuCam problem
 
Quote:

Originally Posted by mallot1243
My compiled version with other small tidbits of code was nearly 500Kb, when I exported it I used 0x800, would I have to change this?

It it doesn't fit, the linker will tell you so. Look at the .map file, which will tell you how much memory (flash & SRAM) you've used.

-Kevin

Joe Hershberger 17-01-2006 22:01

Re: CmuCam problem
 
Quote:

Originally Posted by mallot1243
And whoever came up with the idea of only writing the LabView program for Windows 2001 SP1 or higher?

Windows 2001 SP1?

What?

-Joe

or yaniv 18-01-2006 05:55

Re: CmuCam problem
 
I have the same problem
Quote:

Originally Posted by Mark McLeod
  • Servos are hooked up to pwm01 & 02? yes
  • Camera power is connected by PWM cable to an empty RC PWM output?yes
  • PWM cable is attached to the camera serial port and the RC via TTL converter?yes
  • Backup battery is connected to the RC and fully charged?yes
  • 12v battery is hooked up to the RC and fully charged?yes
  • OI is tethered or linked by radio to the RC and powered?yes
  • Green power LED on the camera power is on?yes
Can you call up Kevin's tracking and camera menus?yes
Did you test separately with Labview?yes

Or

Kevin Watson 18-01-2006 11:27

Re: CmuCam problem
 
Quote:

Originally Posted by or yaniv
I have the same problem...

Download the code mentioned here and report back with the results. This thread may also help. Someone pointed out that they had a defective PWM cable. You might replace the PWM cable you're using for serial communications and see if it starts working.

-Kevin

Uberbots 18-01-2006 23:33

Re: CmuCam problem
 
hmm...

ok you are having the smae problem we did.
you have to calibrate your camera, because there is too much noise in your background that is affecting your stats.
the calibration manual (Here) Contains the information you need to calibrate.

also, make sure that you dont have the wrong axes flipped :) (read the cam manual if you dont know what i maen)

Zoom 19-01-2006 15:19

Re: CmuCam problem
 
Servos are hooked up to pwm01 & 02? YES
Camera power is connected by PWM cable to an empty RC PWM output? YES
PWM cable is attached to the camera serial port and the RC via TTL converter? YES
Backup battery is connected to the RC and fully charged? YES
12v battery is hooked up to the RC and fully charged? YES
OI is tethered or linked by radio to the RC and powered?YES
Green power LED on the camera power is on? YES
Can you call up Kevin's tracking and camera menus? YES
Did you test separately with Labview?YES

everything is fine. But the servos dont move. even if you try to move them through the menu.

billbo911 19-01-2006 15:31

Re: CmuCam problem
 
Quote:

Originally Posted by Zoom
Servos are hooked up to pwm01 & 02? YES
Camera power is connected by PWM cable to an empty RC PWM output? YES
PWM cable is attached to the camera serial port and the RC via TTL converter? YES
Backup battery is connected to the RC and fully charged? YES
12v battery is hooked up to the RC and fully charged? YES
OI is tethered or linked by radio to the RC and powered?YES
Green power LED on the camera power is on? YES
Can you call up Kevin's tracking and camera menus? YES
Did you test separately with Labview?YES

everything is fine. But the servos dont move. even if you try to move them through the menu.

This is just a shot in the dark. By any wild chance, are the lines in user_routines.c/Default_Routine that assign the joystick inputs to the PWM outputs not commented out?
If they are uncommented, then they are being processed after the camera code, and therefore, are overwriting the values set by the camera code.

During testing they should look like this.

Code:

//pwm01=p1_y;
//pwm02=p2_y;

or this
Code:

/*pwm01=p1_y;
  pwm02=p2_y;*/

Kevin's code, without any modifications, doesn't actually call the Default_Routine function. It is commented out in the Process_Data_From_Master_uP function. Therefore, the PWM mappings never get called. If your version of user_routines.c is not from his camera code build, that may be what is happening.


All times are GMT -5. The time now is 11:04.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi