Spatial FOG Reference Manual
Page 93 of 144
Version 2.3
03/05/2018
13 Advanced Navigation Packet Protocol
The Advanced Navigation Packet Protocol (ANPP) is a binary protocol designed with
high error checking, high efciency and safe design practices. It has a well defined
specification and is very fexible. It is used across all existing and future Advanced
Navigation products.
13.1
Data Types
The following data types are used in the packet protocol. All data types in the protocol
are little endian byte ordering.
Abbreviation Bytes
Also known as
u8
1
unsigned char, unsigned byte, uint8_t
s8
1
char, byte, int8_t
u16
2
unsigned short, uint16_t
s16
2
short, int16_t
u32
4
unsigned int, unsigned long, uint32_t
s32
4
int, long, int32_t
u64
8
unsigned long long, uint64_t
s64
8
long long, int64_t
fp32
4
foat
fp64
8
double
Table 21: Data type abbreviations used in the ANPP
13.2
Packet Structure
The ANPP packet structure is shown in Table 22 and the header format is shown in
Table 23. Example code can be downloaded from the software section.
Header
Header LRC
Packet ID
Packet Length
CRC16
Packet Data
Table 22: ANPP Packet Structure