Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
e99c7352
Commit
e99c7352
authored
Feb 22, 2018
by
Leander Schulten
Browse files
Disable Time Distortion, the function is not working
parent
d5773bac
Changes
1
Hide whitespace changes
Inline
Side-by-side
programm.cpp
View file @
e99c7352
...
...
@@ -109,7 +109,9 @@ void Programm::fill(unsigned char *data, size_t length, double time){
for
(
const
auto
cp
:
dp
->
getProgrammPrototyp
()
->
getChannelProgramms
()){
const
auto
channelNummer
=
dp
->
device
->
getStartDMXChannel
()
+
cp
->
channel
->
getIndex
();
if
(
channelNummer
<
length
){
data
[
channelNummer
]
=
cp
->
getValueForTime
(
p
->
getTimeDistortion
()
->
distort
(
time
*
p
->
getSpeed
())
*
dp
->
getSpeed
()
+
dp
->
getOffset
());
#warning Fix distorstion:
// original : cause NAN : cp->getValueForTime(p->getTimeDistortion()->distort(time * p->getSpeed()) * dp->getSpeed()+ dp->getOffset())
data
[
channelNummer
]
=
cp
->
getValueForTime
((
time
*
p
->
getSpeed
())
*
dp
->
getSpeed
()
+
dp
->
getOffset
());
}
}
}
...
...
Write
Preview
Supports
Markdown
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