Description: |
| | A Hardware Object that reads a Dinsmore 1490 Compass and returns a URCP heading value. |
| | The following table lists the size and availability of the oCompassDN Object.
| | Object | Size | Description | A1 | A2 | B1 | B2 | C1 |
 | oCompassDN | 4 Bytes | Reads a Dinsmore 1490 Compass. | x | x | x |
|
Operation: |
| | The oCompassDN Object uses the 4 I/O lines specified by the IOPack to read a Dinsmore 1490 Compass module. It converts the data to a URCP heading value which is then stored in the Heading property. When created, the oCompassDN Object also creates an instance of the oOrbitSwitch4 object which it uses to read the 4 I/O lines and generate the Heading value. Modifying any of the properties of the oOrbtSwitch4X Object instance will affect the oCompassDN Object's operation. See the oOrbitSwitch4 for more detail on how the 4 I/O lines are read. |
Properties: |
| | The following table lists the properties of the oCompassDN Object:
|
Examples: |
| | In the following example, the oCompassDN Object
' This program reads a Dinsmore
' Compass and displays the binary
' URCP value on I/O Lines 8 - 15
Dim A As New oCompassDN
Dim B As New oDio8
Sub Main()
ooPIC.Pullup = 1
B.IOGroup = 3
B.Direction = cvOutput
A.IOGroup = 1
A.Nibble = 1
A.Operate = cvTrue
Do
B.Value = A.Value
Loop
end sub
|
|
Connections: |
| |
 |  |
 |
- +5 Volts
- GND
- Signals: North, East, South, West,
- I/O 0 to North
- I/O 1 to East or West
- I/O 2 to South
- I/O 3 to West or East
|
| IOPack: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Coil | The Dinsmore 1490 Compass Module requires connections to 4 I/O lines. These 4 I/O lines must be 4 contiguous I/O lines starting with I/O line 8, 12, 16, 20, 24, or 28. Each of the 4 I/O lines will require a pull up resister. If the I/O lines starting with 8 or 12 are selected, the internal pull up resisters can be used by setting the ooPIC.PullUp property to 1. |
| I/O 0: | 8 | 16 | 24 | 5 | 12 | 20 | 28 | a |
| I/O 1: | 9 | 17 | 25 | 6 | 13 | 21 | 29 | b |
| I/O 2: | 10 | 18 | 26 | 7 | 14 | 22 | 30 | c |
| I/O 3: | 11 | 19 | 27 | - | 15 | 23 | 31 | d |
|
|
Related Items:
|
| | The following table lists objects with related functions
| | Object | Description | A1 | A2 | B1 | B2 | C1 |
 | oCompassVX | Reads a Vector V2X Compass. | x | x | x |
|
Version History and Bug List: |
| | Firmware Ver B1: Introduced. Bugs: No known bugs. |