Implement named data groups.
[erlang-x-plane-data.git] / src / x_plane_data_group_pitch_roll_heading.erl
1 -module(x_plane_data_group_pitch_roll_heading).
2
3 -include("include/x_plane_data_group_pitch_roll_heading.hrl").
4
5 -export_type(
6 [ t/0
7 ]).
8
9 -export(
10 [ of_raw_values_v10/1
11 ]).
12
13 -define(T, #?MODULE).
14
15 -type t() ::
16 ?T{}.
17
18 -spec of_raw_values_v10(x_plane_data_raw:group_values()) ->
19 t().
20 of_raw_values_v10({V1, V2, V3, V4, _, _, _, _}) ->
21 ?T
22 { pitch_deg = V1
23 , roll_deg = V2
24 , hding_true = V3
25 , hding_mag = V4
26 }.
This page took 0.04333 seconds and 4 git commands to generate.