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

✨ Change MotorGroup Output Velocity #4

Open
SizzinSeal opened this issue Aug 21, 2024 · 0 comments
Open

✨ Change MotorGroup Output Velocity #4

SizzinSeal opened this issue Aug 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SizzinSeal
Copy link
Member

Overview

Add the option to change the output velocity of the MotorGroup class

Motivation

The only way the output velocity of a motor group would change during runtime is because of a multi-speed transmission. While this mechanism is rare, it has the potential to make an appearance during the late season of the 2024-2025 VRC game High Stakes. The motor group class should automatically handle this.

Implementation

A setOutputVelocity method should be added to the MotorGroup class. This will change the value of the maximum output velocity member variable. Offsets may need to be applied to keep the reported angle the same as the angle that was reported before the output velocity was changed.

@SizzinSeal SizzinSeal added the enhancement New feature or request label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant