Commit 46c334d0 authored by Jörg Weingrill's avatar Jörg Weingrill
Browse files

added function for mean direction (modulo movement)

parent e110cbec
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.0">
<POU Name="F_MeanDirection" Id="{94e882ea-c222-451c-8427-c100167c90fa}" SpecialFunc="None">
<Declaration><![CDATA[FUNCTION F_MeanDirection : LREAL
VAR_INPUT
direction1,
direction2: LREAL;
END_VAR
VAR
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[F_MeanDirection := MODABS(direction1 + 360.0 + direction2 + 360, 360.0);]]></ST>
</Implementation>
<LineIds Name="F_MeanDirection">
<LineId Id="7" Count="0" />
</LineIds>
</POU>
</TcPlcObject>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment