Thread: Peg targeting
View Single Post
  #10   Spotlight this post!  
Unread 09-02-2017, 14:31
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 146
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Peg targeting

Quote:
Originally Posted by bacarpenter View Post
Currently my code is located on the roborio and the resolution is set to 360x240 the compression is whatever the default value is I've never changed it. I'm currently working on processing the image on the dashboard instead but I haven't tested it yet. I kinda get what you guys are saying about using another sensor to actually line it up but I don't know exactly how to implement that.
Get a cheap gyro, perhaps the ADXRS450, and set it up so that the angle resets every time the vision info changes (in Periodic Tasks.vi in a 10ms loop). That way, you have an angle that, when subtracted from the angle you calculate from your vision data, gives you how far off you are, even when vision doesn't update. At least that's how I did it.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote