Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Upside-down Camera Gimbal Problems (http://www.chiefdelphi.com/forums/showthread.php?t=74498)

psychomonkey 14-02-2009 20:20

Upside-down Camera Gimbal Problems
 
My team and I have decided that it would be beneficial to hang our camera upside-down this year. The problem with that is that after I flipped the camera over on the mount, the x-axis has been inverted, so that whenever the colors appear on the side of the mask, the gimbal goes the opposite direction. We would like to negate the x axis search pattern, however, I do not know how to do this. I am using LabView. If anybody could give me some tips, that would be much appreciated, and I might even put a good word in for you to the man upstairs. :cool:

Greg McKaskle 14-02-2009 21:05

Re: Upside-down Camera Gimbal Problems
 
Open the VI that does the Servo Control State Machine. On its panel are Proportional(div) values. You will want to negate the X value. Try it out, and if works, make the current value default and save it.

Greg McKaskle

psychomonkey 25-02-2009 15:35

Re: Upside-down Camera Gimbal Problems
 
Thank you for the comment and yes I tried that but it did not work very well.

I was wondering if anyone else had any other opinions?

I am currently a hoopy frood. So please post any decent suggestions. :]

JesseK 25-02-2009 15:58

Re: Upside-down Camera Gimbal Problems
 
I know our programmers did it, but we're using C++. I'll ask them if there's a specific variable, method, etc, when I get a chance. We'll be at the Florida regional to help out if you can't fix it by then.

Luke Pike 25-02-2009 17:04

Re: Upside-down Camera Gimbal Problems
 
I think all you have to do is flip the image on the camera. Just plug the camera into your computer, visit it's IP address, and there should be a setting to rotate the image. Set the rotation to 180 degrees, and you should be good to go.

billbo911 25-02-2009 17:14

Re: Upside-down Camera Gimbal Problems
 
Quote:

Originally Posted by Luke Pike (Post 827928)
I think all you have to do is flip the image on the camera. Just plug the camera into your computer, visit it's IP address, and there should be a setting to rotate the image. Set the rotation to 180 degrees, and you should be good to go.

Or, mount the camera right side up in an up side down gimbel.

psychomonkey 01-03-2009 19:08

Re: Upside-down Camera Gimbal Problems
 
OK, so I have the camera right-side-up on an upside-down gimbal. The problem only starts here. This is what causes the x-axis to be backwards. I have made an attempt at inverting it. I put a case structure in the upper corner with an unbundle and a bundle in order to just invert the x axis. Is this right?

Greg McKaskle 01-03-2009 19:18

Re: Upside-down Camera Gimbal Problems
 
I don't think that will work. You are flipping the value every time it is called, so it will oscillate.

My post on flipping the proportion really is the thing you want to do. What I didn't tell you to do was to find the other places that are adjusting the position and negate their X value as well. A good example is in your Lost-Edge case. The 7,-5 also assumes a certain mounting. Constants like that also need to be negated.

Greg McKaskle

psychomonkey 01-03-2009 23:03

Re: Upside-down Camera Gimbal Problems
 
Should that 320 and 240 be -320 and 240 as well?

Greg McKaskle 02-03-2009 08:40

Re: Upside-down Camera Gimbal Problems
 
Nope. Those are camera pixel offsets. Sorry there aren't better indications of units. That is where the math that was done for a specific camera resolution is being corrected to be in percent so that it is compatible with other camera resolutions.

Greg McKaskle

psychomonkey 03-03-2009 21:34

Re: Upside-down Camera Gimbal Problems
 
Ok, thank you. I got it working. I had to redownload the two color servo example and put in all of the proper gains to get it to where I started from. Then I changed only what you told me to change. Gee I don't think that my foot could get any further into my mouth. :o Thank you for all of your help.

Greg McKaskle 04-03-2009 07:20

Re: Upside-down Camera Gimbal Problems
 
Congrats and good luck at your regional.

Greg McKaskle


All times are GMT -5. The time now is 13:47.

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