122-28029 Parallax Inc, 122-28029 Datasheet - Page 100
122-28029
Manufacturer Part Number
122-28029
Description
GUIDE STUDENT SMART SENSORS
Manufacturer
Parallax Inc
Datasheet
1.122-28029.pdf
(340 pages)
Specifications of 122-28029
Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Smart Sensors
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
- Current page: 100 of 340
- Download datasheet (5Mb)
Page 88 · Smart Sensors and Applications
This demonstrates that if the angle variable stores a measure of brads, and you want to
store a measure of degrees instead, use this command:
Example Program: TestAtn.bs2
This example program calculates angles based on the y and x values you enter into the
Debug Terminal's Transmit windowpane.
angle = 361 */ angle
Most documents recommend angle = 360 */ angle. However, using a */ scale constant of
361 is slightly more accurate over the input/output ranges. Try comparing the results of this
operation made with a BASIC Stamp to those made with a spreadsheet.
Round the result of angle
component of 0.5 or higher, round up. Otherwise, round down. Then compare it to the 256
possible Debug Terminal outputs with 360 */ angle, then repeat with 361 */ angle.
spreadsheet is useful for this comparison. If you try it, you'll se that the rate of integer value
matches is much higher with 361 */ angle.
angle
degrees
= (360/256) × angle
degrees
brads
to the nearest integer.
Figure 3-18
Tangent and Arctangent
If the result has a fractional
A
Related parts for 122-28029
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
MANUAL FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
GUIDE STUDENT PROCESS CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
MANUAL PROPELLER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
LEAD WIRES FLYING CABLE III/IV
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
BOARD ADAPTER AND FLY LEADS
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
PLATFORM CABLE USB II
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
KIT STARTER COOLRUNNER-II BUNDLE
Manufacturer:
Xilinx Inc
Datasheet:
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: