Commit e99c7352 authored by Leander Schulten's avatar Leander Schulten
Browse files

Disable Time Distortion, the function is not working

parent d5773bac
......@@ -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());
}
}
}
......
Supports Markdown
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