-[![Build Status](https://travis-ci.org/ibnfirnas/erlang-x_plane_data.svg?branch=master)](https://travis-ci.org/ibnfirnas/erlang-x_plane_data)
+[![Build Status](https://travis-ci.org/xandkar/erlang-x-plane-data.svg?branch=master)](https://travis-ci.org/xandkar/erlang-x-plane-data)
X-Plane UDP data parser
=======================
#### Raw
-At this stage, only the structure of the packet was parsed. No attempt at
+At this stage, only the structure of the packet was parsed. No attempts at
interpreting the values have been made:
```erlang
##### Access
```erlang
--include_lib("x_plane_data/include/x_plane_data_group_lat_lon_alt.hrl").
--include_lib("x_plane_data/include/x_plane_data_group_pitch_roll_heading.hrl").
-include_lib("x_plane_data/include/x_plane_data_group_speeds.hrl").
-
-...
-
{speeds, #x_plane_data_group_speeds
{ vind_kias = VindKias
, vind_keas = VindKeas
}
} = lists:keyfind(speeds, 1, GroupsNamed),
+...
+
+-include_lib("x_plane_data/include/x_plane_data_group_pitch_roll_heading.hrl").
{pitch_roll_heading, #x_plane_data_group_pitch_roll_heading
{ pitch_deg = PitchDeg
, roll_deg = RollDeg
, hding_mag = HdingMag
}
} = lists:keyfind(pitch_roll_heading, 1, GroupsNamed),
+
+...
+
+-include_lib("x_plane_data/include/x_plane_data_group_lat_lon_alt.hrl").
+{lat_lon_alt, #x_plane_data_group_lat_lon_alt
+ { lat_deg = LatDeg
+ , lon_deg = LonDeg
+ , alt_ftmsl = AltFtmsl
+ , alt_ftagl = AltFtagl
+ , on_runwy = OnRunwy
+ , alt_ind = AltInd
+ , lat_south = LatSouth
+ , lon_west = LonWest
+ }
+} = lists:keyfind(lat_lon_alt, 1, GroupsNamed),
```
Packet structure