| | The oHeading Object manages a signed 8-Bit variable intended to be used as a URCP Heading value so that it can be used in a virtual circuit. As well as the value of the variable, status properties are provided that can also be used in a virtual circuit. The oHeading Object has properties and methods that support the URCP Heading value. URCP Heading values deal with circles, trigonometry, angles and headings. The common numbering system chosen for this is Binary-Radians (Brads) which divides a full circle (360 degrees) into 256 even parts. 256 brads per 360 degrees is used so that a single byte can represent a full circle.Objects such as the oJoystick, oTracker, oServoX, etc. use URCP Heading values. This allows one device such as the oTracker to read a heading from a line on the ground. This value then can be copied to an oServoX Object to steer a robot in the direction needed to follow a line. Similarly, the oJoystick can be used to provide the heading. There are three main differences between this object and a standard Char variable.
- This Object's Value property is an instance of the oValue Object which can be pointed to by a Virtual Circuit.
- This Object maintains status bits which can be pointed to by Virtual Circuits.
- This Object is 1 byte larger in order to store the status information.
|