Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bmk10k
telescope_firmware
Commits
46c334d0
Commit
46c334d0
authored
Feb 03, 2020
by
Jörg Weingrill
Browse files
added function for mean direction (modulo movement)
parent
e110cbec
Changes
1
Hide whitespace changes
Inline
Side-by-side
BMK10k/BMK10kRuntime/POUs/F_MeanDirection.TcPOU
0 → 100644
View file @
46c334d0
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment