Skip to content

Is there a reason why the input block: (motor) get [average speed] during {###ms} has a maximum limit of 300 where the # symbol is? #1769

Answered by laurensvalk
TyMT23 asked this question in Q&A
Discussion options

You must be logged in to vote

It measures the average speed by taking the current angle, subtracted by the angle at the given time before that, and divides by the given time window.

So it keeps a history of about 300ms of all position samples for all motors, which adds up to quite a lot of data.

If you need to do this over a longer time interval, you could do it in your own code. Measure the position at the start, at the end, and divide by the time between them.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TyMT23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants