-
Notifications
You must be signed in to change notification settings - Fork 23
Added LoopTimeComponent and VoltageCompensatingMotor to docs #23
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
base: main
Are you sure you want to change the base?
Conversation
Added docs for voltage compensating motor, although example is little long, not sure how it will display
Added LoopTimeComponent part to TeleOp section of guide
| // or with "ideal" voltage(Volts) and voltage caching time(seconds/Duration) specifications | ||
| val myVoltageCompensatingMotor = VoltageCompensatingMotor(myMotorEx, 500.milliseconds, 12.0) | ||
| val myVoltageCompensatingMotor = VoltageCompensatingMotor(myMotorEx, 0.5, 12.0) | ||
| val myVoltageCompensatingMotor = VoltageCompensatingMotor(myMotorEx, "0.5", 12.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not want duration strings in Kotlin examples; Kotlin users have the extension properties available to create actual Duration objects.
|
|
||
| // or with "ideal" voltage(Volts) and voltage caching time(seconds) specifications | ||
| VoltageCompensatingMotor myVoltageCompensatingMotor = new VoltageCompensatingMotor(myMotorEx, 0.5, 12.0) | ||
| VoltageCompensatingMotor myVoltageCompensatingMotor = new VoltageCompensatingMotor(myMotorEx, "0.5", 12.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"0.5" is not a valid duration string. "500ms" and "0.5s" would be correct here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. Just fixed it to have 500ms instead, and removed the kotlin example as mentioned above that uses a string. Please review my changes
Updated examples of VoltageCompensatingMotor initialization to use numeric values instead of strings for voltage caching time.
Added voltage compensating motor, example is slightly lengthy, not sure how it will display.
Also added Looptime Component to components list