-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
60 lines (36 loc) · 1.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
******** ABOUT TRUE WIND ********
Truewind calculates true wind direction and speed given apparent wind direction,
apparent wind speed and boat speed.
Note that some call this "Boat Wind" and is different from the sort of true wind
that would be calculated using GPS speed and heading.
Truewind reads in NMEA strings and generates NMEA strings.
Supported input NMEA strings:
VHW, VWR and MWV (with Reference = R);
Supported output NMEA strings
MWV (Reference = T);
A basic shell script (test-input.sh) has been included to generate some NMEA
test data. Truewind can consume this directly, or you can feed it via KPlex.
Developed by: Tony Miller, [email protected]
******** COMPILATION INSTRUCTIONS ********
Type the following command to compile typewind.
make
******** EXECUTION ********
Usage:
truewind -if=input_file_name -of=output_file_name
The output file will be created if it doesn't already exist.
******* INTEGRATION WITH KPLEX *******
KPlex is an NMEA multiplexer. truewind can be used to read apparent wind speed,
apparent wind direction and boat speed from KPlex and then write to a FIFO file
that KPlex will then consume.
Config such as the following should be added to the kplex config file.
#output data needed for process calculating true wind
[file]
filename=[truewind input file]
direction=out
persist=yes
ofilter=+**VWR:+**VHW:+**MWV:-all
#read back in the calculated true wind
[file]
filename=[truewind output file]
direction=in
persist=yes