Go to Post words of advice: never tease your dad about his receding hair line. it will come back to haunt you. trust me. - Brandon Martus [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2009, 20:20
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
Exclamation 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.
  #2   Spotlight this post!  
Unread 14-02-2009, 21:05
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
  #3   Spotlight this post!  
Unread 25-02-2009, 15:35
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
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.
  #4   Spotlight this post!  
Unread 25-02-2009, 15:58
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,722
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
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.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
  #5   Spotlight this post!  
Unread 25-02-2009, 17:04
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
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.
__________________
Twitter Profile
  #6   Spotlight this post!  
Unread 25-02-2009, 17:14
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Upside-down Camera Gimbal Problems

Quote:
Originally Posted by Luke Pike View Post
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.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #7   Spotlight this post!  
Unread 01-03-2009, 19:08
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
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?
__________________
In a time... When the greatest comeback occured... There was... MR. FEBRUARY!!!
  #8   Spotlight this post!  
Unread 01-03-2009, 19:18
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
  #9   Spotlight this post!  
Unread 01-03-2009, 23:03
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
Re: Upside-down Camera Gimbal Problems

Should that 320 and 240 be -320 and 240 as well?
__________________
In a time... When the greatest comeback occured... There was... MR. FEBRUARY!!!
  #10   Spotlight this post!  
Unread 02-03-2009, 08:40
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
  #11   Spotlight this post!  
Unread 03-03-2009, 21:34
psychomonkey psychomonkey is offline
Mr. February
AKA: Seth Rhodes
FRC #1592 (Bionic Tigers)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Fairbanks, Alaska
Posts: 23
psychomonkey is an unknown quantity at this point
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. Thank you for all of your help.
__________________
In a time... When the greatest comeback occured... There was... MR. FEBRUARY!!!
  #12   Spotlight this post!  
Unread 04-03-2009, 07:20
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Upside-down Camera Gimbal Problems

Congrats and good luck at your regional.

Greg McKaskle
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount Camera Upside Down LukeRu Programming 2 20-02-2006 20:15
Is CMUcam upside down?!? HELP! Calvin Programming 1 08-02-2006 18:44
pic: Genia upside down! Bridgette Extra Discussion 13 26-04-2005 09:21
CMUCam Upside-down? ahecht Programming 8 27-02-2005 10:25
pic: 322 upside down...and paul sees a ghost? CD47-Bot Extra Discussion 4 05-04-2004 00:13


All times are GMT -5. The time now is 21:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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