Who Has Finished Thier Programming Code or has a good idea on what to do?
Will it really take you like a whole day to do an autonomous code to work to search the light
I only need help on the camera so it can actually search for the light not just follow it
I am a rookie in frc so i dont know much about that but i understand the tutorials though?? Anyone have any recommendations of what i can do or pm me to help me or reply :]
well… considering that you are a rookie team and have 5 weeks (max) until your competition, you should either go for a dead-reckoning system, or work your tails off to get that code to work.
just the fact that there are two lights this year makes it all the more complex… if you want to know, though, the average width of a light is the square root of the amount of pixels returned. if you know the width and the position of the light you want to track, you can easily make the camera center on that target, and given the angle of your servo, you can tell your robot to correct for that angle (with a gyro perhaps). once this is done, drive away and place the keeper.
ok…but i have made a program that will go forward and if the target line is not found go right or left and so forth until it finds the target light then to go forward to the light after 15ft then place the donut but wouldnt it be easier for me to make the camera search the light like to scan it instead of making it just follow it when found???