1 / 6

Final Project Questions

Final Project Questions. Web Design. What you asked me to teach…. What you asked me to teach…. Proximity Sensors. The fluke card is equiped with 3 sensors. getObstacle (<POSITION>) < POSITION> can either be one of 'left', ‘center’, or 'right‘

tevin
Download Presentation

Final Project Questions

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Final Project Questions Web Design

  2. What you asked me to teach…

  3. What you asked me to teach…

  4. Proximity Sensors • The fluke card is equiped with 3 sensors. • getObstacle(<POSITION>) • <POSITION> can either be one of 'left', ‘center’, or 'right‘ • The values reported by these sensors range from 0 to 7000. A 0 implies there is nothing in front of the sensor where as a high number implies the presence of an object. • Example: • While (getObstacle(“middle”)==0):

  5. What part of the picture is the object in… • You only care where the item is from side to side (not top to bottom). • “X” pixels are numbered from 0 to 255 / 0to 426 (left to right) • Divide the image into 3 parts: • Left third 0 – 84 /0 – 142 • Middle third 85 – 169 /143 – 284 • Right third 170 – 255 /285 - 426 • If you take the average of the X value of all the pixels that you think are in the cone you will know where the center of the cone is. • You will need to write code to nudge (barely turn) left or right to adjust to where the cone is in the picture.

  6. Questions??

More Related