|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Ok so now that the season is over would any of you that programmed in labview be willing to send me the code for tracking? i could never figure out how to track properly.
|
|
#2
|
||||
|
||||
|
Re: How many Robots at the nationals had an operational Camera Track Autonomous?
Quote:
You need a gyro and the camera 1) Set up a PID controller to maintain your robot's heading at some set target (sensor input: gyro. setpoint input: some variable, let's call it targetHeading. PID output: a virtual joystick's x axis). 2) Whenever the camera detects a target, set targetHeading to (your current heading + angle offset that the camera sees the target). The robot will point itself at the target. Having a PID heading controller is also useful if you want to run along the side of the field against the wall to pick up balls. With human control, robots tend to spin off because of the higher-grip carpet. With a heading controller, it automatically adjusts your motor's power levels to maintain its orientation relative to the wall, allowing for long runs of picking up the balls that gather on the outside of the field. Last edited by Bongle : 23-04-2009 at 09:16. |
|
#3
|
|||
|
|||
|
Re: How many Robots at the nationals had an operational Camera Track Autonomous?
We had our camera tracking working for our second to last match I think, and we scored 6/7. Our robot had our camera mounted to our turret, so we could estimate the error in angle based on the position of the target in the image. We would add that error to the angle that the turret was pointing (found by potentiometer) to get our final error. And since your PID loop really just needs error, this will skip the need for a gyro to a point, since it won't remember target location.
|
|
#4
|
||||
|
||||
|
Re: How many Robots at the nationals had an operational Camera Track Autonomous?
Quote:
Last edited by Bongle : 23-04-2009 at 14:23. |
|
#5
|
|||
|
|||
|
Re: How many Robots at the nationals had an operational Camera Track Autonomous?
I wish that were exactly the case. Unlike a using a PID+gyro, our system returns to going straight when there is no target in sight (or continues turning at the same rate, depending on how we want it) whereas with a gyro you can remember an angle and PID to the angle, effectively turning to the last known location.
Otherwise, they work in essentially the same manner |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how many people have had failing jaguars | bluebird | Motors | 127 | 04-03-2010 23:28 |
| How many teams had router problems? | darkember | Technical Discussion | 8 | 31-01-2009 21:22 |
| How many teams are using the Camera? | Matt Goulart | Electrical | 3 | 30-01-2005 09:29 |
| how many of u actually used the stacker if u had one? | HolyMasamune | General Forum | 21 | 14-04-2003 13:12 |
| How many robots on the bar in one match? | archiver | 2000 | 14 | 23-06-2002 22:39 |