Chapter 8. 14b14b14bprogramming guide, 57b57b57bgeneral settings, 58b58b58bnumber formats – Moog Crossbow NAV440 Series User Manual
Page 59: General settings, Number formats, Table 11 number formats, Chapter 8. programming guide

V440 User Ma
7430‐0131‐01 Rev. F
Page 59
NA
nual
Chapter 8. Programming Guide
This section of the manual assumes that the user is familiar with ANSI C programming language and data
NOTE:
type conventions.
The 440 Series support a common packet structure that includes both command or input data packets, and
measurement output or response packet formats. This section of the manual explains these packet formats as well
as the supported commands. NAV‐VIEW 2.2 also features a number of tools to understand the packet types
available and the information contained within the packets. For an example of the code required to parse input data
packets, refer to Appendix C. Sample Packet—Parser Code.
General Settings
The serial port settings are RS232 with 1 start bit, 8 data bits, no parity bit, 1 stop bit, and no flow control. The baud
00, 38400, and 57600.
rates supported are 9600, 192
Common definitions include:
• A word is defined as 2 bytes, which are 16 bits.
• All communications to and from the unit are packets that start with a single word alternating bit preamble
0x5555. This is the ASCII string “UU”.
• All multiple byte values are transmitted Big Endian (Most Significant Byte First).
• All communication packets end with a single word CRC (2 bytes). CRC’s are calculated on all packet bytes
excluding the preamble and CRC itself. Input packets with incorrect CRC’s will be ignored.
• Each complete communication packet must be transmitted to the 440 Series inertial system within a four
(4) second period.
Number Formats
Number Format Conventions include:
• 0x as a prefix to hexadecimal values
• Single quotes (‘’) to delimit ASCII characters
• No prefix or delimiters to specify decimal values
The following table defines number formats:
Table 11 Number Formats
Descriptor
Description
Size (bytes)
Comment
Range
U1
Unsigned Char
1
—
0 to 255
U2
Unsigned Short
2
—
0 to 65535
U4
Unsigned Int
4
—
0 to 2^32‐1
I2
Signed Short
2
2’s Complement
‐2^15 to 2^15‐1
I2*
Signed Short
2
Shifted 2’s Complement
Shifted to specified range
I4
Signed Int
4
2’s Complement
‐2^31 to 2^31‐1