Implement named data groups.
[erlang-x-plane-data.git] / src / x_plane_data_group_speeds.erl
CommitLineData
84fa8ccb
SK
1-module(x_plane_data_group_speeds).
2
3-include("include/x_plane_data_group_speeds.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().
20of_raw_values_v10({V1, V2, V3, V4, _, V6, V7, V8}) ->
21 ?T
22 { vind_kias = V1
23 , vind_keas = V2
24 , vtrue_ktas = V3
25 , vtrue_ktgs = V4
26
27 , vind_mph = V6
28 , vtrue_mphas = V7
29 , vtrue_mphgs = V8
30 }.
This page took 0.021296 seconds and 4 git commands to generate.