Legacy User Defined CIGI Packets
Introduction
The legacy user defined CIGI packets were created to mirror the internal structures of nova for several features. This allows the user direct 1 to 1 access to many of the internal fields without using the standard CIGI packets. As of the 2020.1 release we added support for all of our features previously only available through these user packets in the standard CIGI packets. Aechelon plan's to continue support these packets for several more major releases.
Upon request Aechelon can provide header files that correspond with these packets and internal structures so they can be included in the project.
Packet Header
Each Aechelon User Defined packet contains a 6 byte header at the beginning of the packet. This stores the packet ID, packet size and a pCNova Index field which may or may not be used depending on the packet.
Sea State ID 226
| Sea State User Defined Packet | |||
|---|---|---|---|
| Field | Value/Description | Type | Byte Offset |
| Packet ID | 226 | char | 0 |
| Packet Size | 50 bytes | char | 1 |
| pCNova Index | Unused | float | 2 |
| sea state | sea state value | char | 0 |
| sea_roughness | roughness 0-5 | char | 1 |
sea_wind_dir | direction in degrees | float | 4 |
sea_wind_speed | in knots | float | 8 |
sea_depth | affects color of rendered water surface | float | 12 |
sea_lod_bias | for 3d sea rendering (default 1.0) | float | 16 |
breaking_wave_speed | speed of the breaking wave effect | float | 20 |
tide_level | in feet | float | 24 |
sea_current_dir | direction in degrees | float | 28 |
sea_current_speed | in knots | float | 32 |
sea_current_amplitude | wave amplitude in meters | float | 36 |
sea_current_period | wave period in meters | float | 40 |