Team2890HawkCollective / Quetzalcoatl

2019 Season FRC Robot code for Team 2890 - The Hawk Collective
2 stars 2 forks source link

Use data from pixy to determine position/angle #14

Closed Podcakero closed 5 years ago

Podcakero commented 5 years ago

Talk with Douglas to figure out geometry math. Find out what the getAngle() method does

Valance23322 commented 5 years ago

What is the status of this issue @Podcakero

Podcakero commented 5 years ago

we return the difference in the heights of the two detected blocks to determine how much we should rotate. when the difference equals 0 we then return (((x1-x2)/2) -150) where x1 is the left target, x2 is the right target, and 150 is the middle of the camera video stream. when this equals 0 we return the value of the lidar rangefinder - 100 to set our forwards speed. we stop when this equals 0

Valance23322 commented 5 years ago

I'm assuming that this is split into 3 different methods? Where is this in the code? Also you might want to make the 150 a variable incase we change the camera resolution.

Podcakero commented 5 years ago

its the arduino code. its all in loop.

Podcakero commented 5 years ago

there are commands in java that read in the data sent and do the actions when needed

Podcakero commented 5 years ago

i can better explain it to you if you are coming today. ill work on a flowchart/diagram detailing it

Valance23322 commented 5 years ago

Awaiting PixyCam to be installed on robot

Team2890 commented 5 years ago

Pixycam is installed on robot need time to test

Podcakero commented 5 years ago

Position and angle have been determined for awhile. This needs testing. #33 takes care of that