Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Delay block #19

Merged
merged 1 commit into from
Jan 31, 2019
Merged

Adding Delay block #19

merged 1 commit into from
Jan 31, 2019

Conversation

pjadzinsky
Copy link

No description provided.

@masfaraud
Copy link
Owner

Hi, do you manage to make it work as expected?

@pjadzinsky
Copy link
Author

I think so, I added a test and notes. You do see the proposed changes right?

To be honest, if you expect anyone to contribute you have to be a lot more responsive or add other people to the project.

@masfaraud
Copy link
Owner

To answer your question why having to evaluate at each time step: you never known what's coming inside the block. In can be something coming from the output of the delay block with a feedback loop.
Your remark only works for systems without feedback loops.

The default value is initial value of the input.

I made interpolation to compute the value when the delay value is between two time steps. Now it works with delay as a float in seconds.

I moved your test script in the scripts/tests/blocks folder. The test has to be rewritten, that's why i commented it. Based on this script I made a demo script in scripts/

@masfaraud masfaraud merged commit 97f04d0 into masfaraud:master Jan 31, 2019
@masfaraud masfaraud mentioned this pull request Jan 31, 2019
@pjadzinsky
Copy link
Author

pjadzinsky commented Jan 31, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants