This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:v2:line_quickstart [2018/07/03 19:27] pixycam |
wiki:v2:line_quickstart [2018/07/03 19:30] pixycam |
||
---|---|---|---|
Line 62: | Line 62: | ||
By default, Pixy2 will choose the branch automatically or based on default turn angle or the most recent call to [[wiki:v2:line_api|setNextTurn()]]. You can change this behavior by enabling "delayed turn" in the Expert configure tab. | By default, Pixy2 will choose the branch automatically or based on default turn angle or the most recent call to [[wiki:v2:line_api|setNextTurn()]]. You can change this behavior by enabling "delayed turn" in the Expert configure tab. | ||
- | |||
- | |||
- | FIXME pic enable delayed turn | ||
Line 79: | Line 76: | ||
- | In delayed turn mode, Pixy2 will wait for the call to [[wiki:v2:line_api|setNextTurn()]] to choose the branch that matches the angle the closest. | + | In delayed turn mode, Pixy2 will wait for your controller to call [[wiki:v2:line_api|setNextTurn()]] which will instruct Pixy2 to choose the branch of the intersection that matches the angle the closest. |
Line 103: | Line 100: | ||
//Note: if you're using Arduino Nano, the ribbon cable faces the interior of the Nano, it doesn't exit off the side like on the Uno (pictured).\\ | //Note: if you're using Arduino Nano, the ribbon cable faces the interior of the Nano, it doesn't exit off the side like on the Uno (pictured).\\ | ||
If the cable is plugged in backwards, you won't be able to upload to the Nano, or have serial communication with it.// | If the cable is plugged in backwards, you won't be able to upload to the Nano, or have serial communication with it.// | ||
+ | |||
{{wiki:img:ce5166e65a245cce097741efef288fe09b08da8a.jpg?400}}\\ | {{wiki:img:ce5166e65a245cce097741efef288fe09b08da8a.jpg?400}}\\ | ||
{{wiki:v2:img_5257_result.jpg?400}} | {{wiki:v2:img_5257_result.jpg?400}} | ||
+ | |||
Next, download the latest Arduino library "arduino\_pixy2-x.y.z.zip" [[https://pixycam.com/downloads-pixy2/|here]]. Bring up the Arduino IDE and import the Pixy library by selecting **Sketch➜Include Library➜Add .ZIP Library...** (or if you're using an older version **Sketch➜Import Library**) in the Arduino IDE, and then browsing to the Arduino zip file that you just downloaded. | Next, download the latest Arduino library "arduino\_pixy2-x.y.z.zip" [[https://pixycam.com/downloads-pixy2/|here]]. Bring up the Arduino IDE and import the Pixy library by selecting **Sketch➜Include Library➜Add .ZIP Library...** (or if you're using an older version **Sketch➜Import Library**) in the Arduino IDE, and then browsing to the Arduino zip file that you just downloaded. | ||
Line 118: | Line 117: | ||
In particular, when you hold a barcode, line or intersection, you can see the numbers that Pixy2 returns. Bear in mind that the numbers Pixy2 returns are based on the coordinate system below. | In particular, when you hold a barcode, line or intersection, you can see the numbers that Pixy2 returns. Bear in mind that the numbers Pixy2 returns are based on the coordinate system below. | ||
+ | |||
[{{wiki:v2:image_366.png?500|Line tracking image coordinates from Pixy2's perspective.}}] | [{{wiki:v2:image_366.png?500|Line tracking image coordinates from Pixy2's perspective.}}] | ||
+ | |||
=== The line tracking API === | === The line tracking API === |