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

Thursday part 6 #17

Open
olliesilvester opened this issue Jul 10, 2024 · 0 comments
Open

Thursday part 6 #17

olliesilvester opened this issue Jul 10, 2024 · 0 comments

Comments

@olliesilvester
Copy link
Owner

Create a fully type-hinted plan called exercise_motor which does the following:

  • Has three parameters, one for the motor itself and one for desired_time and one for desired_repetitions
  • The motor needs to travel between its max_limit -5 and its low_limit + 5 for the desired number of repetitions, and it needs to do this in the desired time
  • The code should check whether or not this is possible given the inputs and the motors speed / position limits
  • If it is possible, set the motor velocity such that it should complete exactly the desired number of repetitions in the time specified

If there's time, create unit tests for this plan too.

This one will be hard! It is a realistic sort of thing we would need to develop for scientists

@olliesilvester olliesilvester changed the title Thursday part 7 Thursday part 6 Jul 10, 2024
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

No branches or pull requests

1 participant